Skip to content

[3.14] gh-135805: Document the X option and env var for controlling thread-local bytecode (GH-135868) #135897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Doc/using/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,13 @@ Miscellaneous options

.. versionadded:: 3.14

* :samp:`-X tlbc={0,1}` enables (1, the default) or disables (0) thread-local
bytecode in builds configured with :option:`--disable-gil`. When disabled,
this also disables the specializing interpreter. See also
:envvar:`PYTHON_TLBC`.

.. versionadded:: 3.14

It also allows passing arbitrary values and retrieving them through the
:data:`sys._xoptions` dictionary.

Expand Down Expand Up @@ -1302,6 +1309,16 @@ conflict.

.. versionadded:: 3.13

.. envvar:: PYTHON_TLBC

If set to ``1`` enables thread-local bytecode. If set to ``0`` thread-local
bytecode and the specializing interpreter are disabled. Only applies to
builds configured with :option:`--disable-gil`.

See also the :option:`-X tlbc <-X>` command-line option.

.. versionadded:: 3.14

Debug-mode variables
~~~~~~~~~~~~~~~~~~~~

Expand Down
Loading