Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Match gh-112850.
  • Loading branch information
ericsnowcurrently committed Dec 7, 2023
commit fcb55dade353aa17b5ab5843a6d3ce9f44d16df4
18 changes: 9 additions & 9 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1892,6 +1892,15 @@ Changes in the Python API
* Mixing tabs and spaces as indentation in the same file is not supported anymore and will
raise a :exc:`TabError`.

* The :mod:`threading` module now expects the :mod:`!_thread` module to have
an ``_is_main_interpreter`` attribute. It is a function with no
arguments that returns ``True`` if the current interpreter is the
main interpreter.

Any library or application that provides a custom ``_thread`` module
should provide ``_is_main_interpreter()``.
(See :gh:`112826`.)

Build Changes
=============

Expand Down Expand Up @@ -2236,15 +2245,6 @@ Porting to Python 3.12
guidance then please create a new GitHub issue
and CC ``@ericsnowcurrently``.

* The :mod:`threading` module now expects the :mod:`!_thread` module to have
a ``_is_main_interpreter`` attribute. Is is a function with no
arguments that returns ``True`` if the current interpreter is the
main interpreter.

Any library or application that provides a custom ``_thread`` module
must make sure it provides ``_is_main_interpreter()``.
(See :gh:`112826`.)

Deprecated
----------

Expand Down
17 changes: 9 additions & 8 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1046,14 +1046,15 @@ Changes in the Python API
retrieve a username, instead of :exc:`ImportError` on non-Unix platforms or
:exc:`KeyError` on Unix platforms where the password database is empty.

* The :mod:`threading` module now expects the :mod:`!_thread` module to have
a ``_is_main_interpreter`` attribute. Is is a function with no
arguments that returns ``True`` if the current interpreter is the
main interpreter.

Any library or application that provides a custom ``_thread`` module
must make sure it provides ``_is_main_interpreter()``.
(See :gh:`112826`.)
* The :mod:`threading` module now expects the :mod:`!_thread` module to have
an ``_is_main_interpreter`` attribute. It is a function with no
arguments that returns ``True`` if the current interpreter is the
main interpreter.

Any library or application that provides a custom ``_thread`` module
must provide ``_is_main_interpreter()``, just like the module's
other "private" attributes.
(See :gh:`112826`.)


Build Changes
Expand Down