File tree 4 files changed +8
-6
lines changed
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -427,14 +427,14 @@ The available slot types are:
427
427
This slot is ignored by Python builds not configured with
428
428
:option:`--disable-gil`. Otherwise, it determines whether or not importing
429
429
this module will cause the GIL to be automatically enabled. See
430
- :envvar:`PYTHON_GIL` and :option:`-X gil <-X> ` for more detail.
430
+ :ref:`free-threaded-cpython ` for more detail.
431
431
432
432
Multiple ``Py_mod_gil`` slots may not be specified in one module definition.
433
433
434
434
If ``Py_mod_gil`` is not specified, the import machinery defaults to
435
435
``Py_MOD_GIL_USED``.
436
436
437
- .. versionadded: 3.13
437
+ .. versionadded:: 3.13
438
438
439
439
See :PEP:`489` for more details on multi-phase initialization.
440
440
Original file line number Diff line number Diff line change @@ -622,7 +622,8 @@ Miscellaneous options
622
622
623
623
* :samp: `-X gil={ 0,1 } ` forces the GIL to be disabled or enabled,
624
624
respectively. Only available in builds configured with
625
- :option: `--disable-gil `. See also :envvar: `PYTHON_GIL `.
625
+ :option: `--disable-gil `. See also :envvar: `PYTHON_GIL ` and
626
+ :ref: `free-threaded-cpython `.
626
627
627
628
.. versionadded :: 3.13
628
629
@@ -1212,7 +1213,7 @@ conflict.
1212
1213
forced on. Setting it to ``0 `` forces the GIL off.
1213
1214
1214
1215
See also the :option: `-X gil <-X> ` command-line option, which takes
1215
- precedence over this variable.
1216
+ precedence over this variable, and :ref: ` free-threaded-cpython ` .
1216
1217
1217
1218
Needs Python configured with the :option: `--disable-gil ` build option.
1218
1219
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ General Options
299
299
Defines the ``Py_GIL_DISABLED `` macro and adds ``"t" `` to
300
300
:data: `sys.abiflags `.
301
301
302
- See :pep: ` 703 ` "Making the Global Interpreter Lock Optional in CPython" .
302
+ See :ref: ` free-threaded-cpython ` for more detail .
303
303
304
304
.. versionadded :: 3.13
305
305
Original file line number Diff line number Diff line change @@ -368,7 +368,8 @@ CPython will run with the :term:`global interpreter lock` (GIL) disabled when
368
368
configured using the ``--disable-gil `` option at build time. This is an
369
369
experimental feature and therefore isn't used by default. Users need to
370
370
either compile their own interpreter, or install one of the experimental
371
- builds that are marked as *free-threaded *.
371
+ builds that are marked as *free-threaded *. See :pep: `703 ` "Making the Global
372
+ Interpreter Lock Optional in CPython" for more detail.
372
373
373
374
Free-threaded execution allows for full utilization of the available
374
375
processing power by running threads in parallel on available CPU cores.
You can’t perform that action at this time.
0 commit comments