gh-146636: Add Free-threaded Stable ABI migration guide#148453
gh-146636: Add Free-threaded Stable ABI migration guide#148453clin1234 wants to merge 18 commits into
Conversation
da-woods
left a comment
There was a problem hiding this comment.
There's a lot that isn't right here (or is mostly about freethreading generally rather than about the stable ABI).
Sorry, something went wrong.
|
I think the way most people will want to proceed is:
But steps 1 and 2 are the main ones and are almost not covered here. |
Sorry, something went wrong.
|
I don't understand why we are having this PR when the reference documentation is not merged. Can we revisit this later? I would have expected the PEP's author to write this. |
Sorry, something went wrong.
|
I left it as a draft because I do not think it is time for it to be reviewed. Please wait for the PEP author first. |
Sorry, something went wrong.
|
Please don't repeat text from free-threading HOWTO. This document should be about migrating from that to the stable ABI; anything that's relevant to free-threading in general should be explained there (and possibly linked from the new document). Also don't repeat information from the reference docs. A migration guide should link to the docs, and perhaps point out how/why the new thing is different. And please see here on how-to guides in general: https://diataxis.fr/how-to-guides/ |
Sorry, something went wrong.
Documentation build overview
101 files changed ·
|
Sorry, something went wrong.
This document provides detailed instructions on how to use the Free Threading Stable ABI in CPython, including guidelines for module initialization, API usage, and thread safety considerations.
Clarified access restrictions on PyObject members and recommended functions for type and reference count manipulation.
Clarified that direct access to PyObject members is prohibited.
Updated documentation to clarify the identification of free-threaded limited API builds in C, including changes to macros and initialization methods.
Updated the documentation to clarify the use of the stable ABI and GIL management in Python extensions, including changes to member access and initialization methods.
Removed sections on API guidelines, critical sections, and thread safety from the documentation.
Any other major PRs as part of implementing PEP 803 that should be mentioned in the Migration Guide? |
Sorry, something went wrong.
📚 Documentation preview 📚: https://cpython-previews--148453.org.readthedocs.build/