-
-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-45474: Exclude all of marshal.h if Py_LIMITED_API is defined #29061
Conversation
These items were not part of the limited API, which is defined in the docs (via Misc/stable_abi.txt). The change brings the `Py_LIMITED_API` macro closer to the ideal of only allowing things in the limited API.
Nothing in the file is listed as part of the limited API. The symbols are not exported in the Windows stable ABI dlls. The header is not included from <Python.h>.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I wasn't sure, I made the least controversial change. Thanks for finishing the work ;-)
Well, you pinged me in the original PR, but merged before I got to reply. Next time, could you please wait? |
@encukou: Status check is done, and it's a success ✅ . |
Thanks for the review! |
I made a long series of changes on the C API (Include/ directory). GitHub doesn't support patch series, so I have to merge pull requests one by one. I already takes me between 30 min and 2 hour to merge a single PR, so I prefer to not have to wait for too long when I have a long serie. Sure, I pinged you since you are now the limited C API / stable ABI expert! And it seems like it was worth it since you spotted more issues :-) I was confident that using You made a second change to finish marshal API cleanup, IMO that's the way to go ;-) Nice team work! |
Also, reword the What's New messages: this doesn't change the limited API, it only brings the Py_LIMITED_API macro closer to the ideal of only allowing the limited API.
https://bugs.python.org/issue45474
Automerge-Triggered-By: GH:encukou