Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fea5ccc

Browse filesBrowse files
authored
gh-135805: Document the X option and env var for controlling thread-local bytecode (#135868)
Document the X option and env var for controlling thread-local bytecode.
1 parent b3ab94a commit fea5ccc
Copy full SHA for fea5ccc

File tree

Expand file treeCollapse file tree

1 file changed

+17
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+17
-0
lines changed
Open diff view settings
Collapse file

‎Doc/using/cmdline.rst‎

Copy file name to clipboardExpand all lines: Doc/using/cmdline.rst
+17Lines changed: 17 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,13 @@ Miscellaneous options
669669

670670
.. versionadded:: 3.14
671671

672+
* :samp:`-X tlbc={0,1}` enables (1, the default) or disables (0) thread-local
673+
bytecode in builds configured with :option:`--disable-gil`. When disabled,
674+
this also disables the specializing interpreter. See also
675+
:envvar:`PYTHON_TLBC`.
676+
677+
.. versionadded:: 3.14
678+
672679
It also allows passing arbitrary values and retrieving them through the
673680
:data:`sys._xoptions` dictionary.
674681

@@ -1302,6 +1309,16 @@ conflict.
13021309

13031310
.. versionadded:: 3.13
13041311

1312+
.. envvar:: PYTHON_TLBC
1313+
1314+
If set to ``1`` enables thread-local bytecode. If set to ``0`` thread-local
1315+
bytecode and the specializing interpreter are disabled. Only applies to
1316+
builds configured with :option:`--disable-gil`.
1317+
1318+
See also the :option:`-X tlbc <-X>` command-line option.
1319+
1320+
.. versionadded:: 3.14
1321+
13051322
Debug-mode variables
13061323
~~~~~~~~~~~~~~~~~~~~
13071324

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.