GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — bpo-41861: Clean up sqlite3 header files wrt. PEP 384 by erlend-aasland · Pull Request #22419 · python/cpython Conversation
|
|
@corona10, would you mind doing a review of this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@vstinner, would you mind taking a look at this. After this cleanup, I think we can close bpo-41861. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
As per review comments.
- Fix incomplete type (PyMemberDef => struct PyMemberDef) - Include structmember.h bco. PyMemberDef
c935779 to
b98761c
Compare
|
Seems like the Travis CI is stuck… |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.
There was an error while loading. Please reload this page.
If it was, it would be sufficient to include |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
I think that the "not part of the stable API" comment was a reference to bpo-2897. According to PEP 384, 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.
There was an error while loading. Please reload this page.
|
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.