diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-06 11:32:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 11:32:37 (GMT) |
commit | a11158ecef8cff795f7db8f4047cbd20cc9cf37e (patch) | |
tree | d2bb78bba2629fca01ef6666a80360ed537b06cb /Doc | |
parent | 0a642d57736be6802c712bdbf2dcff39fe8a39b7 (diff) | |
download | cpython-a11158ecef8cff795f7db8f4047cbd20cc9cf37e.zip cpython-a11158ecef8cff795f7db8f4047cbd20cc9cf37e.tar.gz cpython-a11158ecef8cff795f7db8f4047cbd20cc9cf37e.tar.bz2 |
bpo-44584: Deprecate PYTHONTHREADDEBUG env var (GH-27065)
The threading debug (PYTHONTHREADDEBUG environment variable) is
deprecated in Python 3.10 and will be removed in Python 3.12. This
feature requires a debug build of Python.
(cherry picked from commit 4d77691172aae81bdcbb0ea75839d0e896c43781)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/using/cmdline.rst | 4 | ||||
-rw-r--r-- | Doc/whatsnew/3.10.rst | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index 25e05d4..f22548f 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -942,10 +942,12 @@ Debug-mode variables .. envvar:: PYTHONTHREADDEBUG - If set, Python will print threading debug info. + If set, Python will print threading debug info into stdout. Need a :ref:`debug build of Python <debug-build>`. + .. deprecated-removed:: 3.10 3.12 + .. envvar:: PYTHONDUMPREFS diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 5af1693..d9a90fb 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -1687,6 +1687,11 @@ Deprecated * NPN features like :meth:`ssl.SSLSocket.selected_npn_protocol` and :meth:`ssl.SSLContext.set_npn_protocols` are replaced by ALPN. +* The threading debug (:envvar:`PYTHONTHREADDEBUG` environment variable) is + deprecated in Python 3.10 and will be removed in Python 3.12. This feature + requires a :ref:`debug build of Python <debug-build>`. + (Contributed by Victor Stinner in :issue:`44584`.) + .. _whatsnew310-removed: Removed |