gh-108223: Refer to PEP 703 as Free Threading (#112780)

This commit is contained in:
Victor Stinner 2023-12-06 12:55:58 +01:00 committed by GitHub
parent 00cce0fe49
commit f8852634ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -292,7 +292,10 @@ General Options
.. option:: --disable-gil
Enables **experimental** support for running Python without the
:term:`global interpreter lock` (GIL).
:term:`global interpreter lock` (GIL): free threading build.
Defines the ``Py_GIL_DISABLED`` macro and adds ``"t"`` to
:data:`sys.abiflags`.
See :pep:`703` "Making the Global Interpreter Lock Optional in CPython".

View File

@ -291,7 +291,7 @@ def get_build_info():
# --disable-gil
if sysconfig.get_config_var('Py_GIL_DISABLED'):
build.append("nogil")
build.append("free_threading")
if hasattr(sys, 'gettotalrefcount'):
# --with-pydebug