Skip to content

Commit 13c8566

Browse files
Add a "What's New" entry.
1 parent 2e632fa commit 13c8566

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,6 +2236,15 @@ Porting to Python 3.12
22362236
guidance then please create a new GitHub issue
22372237
and CC ``@ericsnowcurrently``.
22382238

2239+
* The :mod:`threading` module now expects the :mod:`!_thread` module to have
2240+
a ``_is_main_interpreter`` attribute. Is is a function with no
2241+
arguments that returns ``True`` if the current interpreter is the
2242+
main interpreter.
2243+
2244+
Any library or application that provides a custom ``_thread`` module
2245+
must make sure it provides ``_is_main_interpreter()``.
2246+
(See :gh:`112826`.)
2247+
22392248
Deprecated
22402249
----------
22412250

Doc/whatsnew/3.13.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,15 @@ Changes in the Python API
10461046
retrieve a username, instead of :exc:`ImportError` on non-Unix platforms or
10471047
:exc:`KeyError` on Unix platforms where the password database is empty.
10481048

1049+
* The :mod:`threading` module now expects the :mod:`!_thread` module to have
1050+
a ``_is_main_interpreter`` attribute. Is is a function with no
1051+
arguments that returns ``True`` if the current interpreter is the
1052+
main interpreter.
1053+
1054+
Any library or application that provides a custom ``_thread`` module
1055+
must make sure it provides ``_is_main_interpreter()``.
1056+
(See :gh:`112826`.)
1057+
10491058

10501059
Build Changes
10511060
=============

0 commit comments

Comments
 (0)