PEP 793, 803, 820: Update & mark as Final#5006
Open
encukou wants to merge 1 commit into
Open
Conversation
Documentation build overview
6 files changed ·
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PEP 123: Mark as Final)Statuschanged toFinal(andPython-Versionis correct)canonical-docdirective(or
canonical-pypa-specfor packaging PEPs,or
canonical-typing-specfor typing PEPs)Besides typos, minor inaccuracies, and links to current docs and implementation-tracking issues, the changes are:
PEP 793:
PEP 803:
If
Py_TARGET_ABI3Tis defined, thenPython.hwill make sure thatPy_GIL_DISABLEDis defined as well.Users may check this macro to enable free-threading-specific code like extra locking.
(Users do this in practice.)
Add a
PyABIInfo_FREETHREADING_AGNOSTICflag forPyABIInfo.flags(I forgot to mention it both here and in Add a struct, slot & function for checking an extension's ABI capi-workgroup/decisions#72.)
Mention that
PyCriticalSectionwas added too.PEP 820:
PySlot_STATICflag is required for data that needs to be static (Py_mod_methods,Py_tp_methods,Py_tp_members,Py_tp_getset) when using the new-style slots.(The original reference implementation didn't have this.)