Skip to content

bpo-40421: Add Include/cpython/code.h header file - #19756

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:pyframe
Apr 28, 2020
Merged

vstinner merged 1 commit into
python:masterfrom
vstinner:pyframe

Conversation

@vstinner

@vstinner vstinner commented Apr 28, 2020 •

Copy link
Copy Markdown
Member

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

3 participants