Visitar URL original
bpo-40421: Add Include/cpython/code.h header file by vstinner · Pull Request #19756 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260130181356/https://github.com/python/cpython/pull/19756
Skip to content
/ cpython Public

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Apr 28, 2020 •

bpo-35134, bpo-40421: Add Include/cpython/code.h header file.

code.h now defines PyCodeObject type in the limited C API. It is now
included by Python.h.

Name the PyCodeObject structure: it is now called
"struct PyCodeObject". So it becomes possible to define PyCodeObject
as "struct PyCodeObject" in the limited C API without defining the
structure.

https://bugs.python.org/issue40421

bpo-35134, bpo-40421: Add Include/cpython/code.h header file.

code.h now defines PyCodeObject type in the limited C API. It is now
included by Python.h.

Name the PyCodeObject structure: it is now called
"struct PyCodeObject". So it becomes possible to define PyCodeObject
as "struct PyCodeObject" in the limited C API without defining the
structure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants