| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@corona10, would you mind doing a review of this? |
Sorry, something went wrong.
|
@vstinner, would you mind taking a look at this. After this cleanup, I think we can close bpo-41861. |
Sorry, something went wrong.
As per review comments.
- Fix incomplete type (PyMemberDef => struct PyMemberDef) - Include structmember.h bco. PyMemberDef
|
Seems like the Travis CI is stuck… |
Sorry, something went wrong.
structmember.h is part of the limited C API. If it should not, I suggest to first exclude it from the limited C API, before changing _sqlite3 header files. |
Sorry, something went wrong.
If it was, it would be sufficient to include Python.h, no? |
Sorry, something went wrong.
|
I'm not sure why some header files like frameobject.h are not included by Python.h. Not being included by Python.h doesn't mean excluded from the limited C API. Or maybe I misunderstood something. |
Sorry, something went wrong.
From PEP 384: "Applications shall only include the header file Python.h (before including any system headers), or, optionally, include pyconfig.h, and then Python.h." I was under the impression that the "stable C API" and the "limited C API" was the same thing, however, that might not be the case? |
Sorry, something went wrong.
I think that the "not part of the stable API" comment was a reference to bpo-2897. According to PEP 384, PyMemberDef is indeed a part of the stable (limited?) C API, however PyMemberDef is defined in structmember.h, and PEP 384 states that you're allowed to include Python.h only. Referenced in the bpo, there's a (huge) PR (#20462) that deprecates structmember.h and moves its content to descrobject.h. The current situation is such that PEP 384 is self-contradicting when it comes to header files and structures. However, I guess that PEP 384 compliance is not as strict for built-in modules as it is for third party modules? So, should bpo-2897 be resolved first before continuing with this PR? |
Sorry, something went wrong.
|
Guessing that this PR is on hold until this is sorted out, @vstinner. Perhaps the bpo can be closed without this. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Ref. https://www.python.org/dev/peps/pep-0384/#header-files-and-preprocessor-definitions
Also ref. bpo-2897 (PyMemberDef not part of the stable API)
https://bugs.python.org/issue41861