.. bpo: 1635741
.. date: 2020-09-26-14-43-30
.. nonce: aJS9B3
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`!_bisect` module to the multi-phase initialization API
(:pep:`489`).
.. bpo: 1635741
.. date: 2020-09-12-18-34-34
.. nonce: lh335O
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`!_lsprof` extension module to multi-phase initialization
(:pep:`489`).
.. bpo: 1635741
.. date: 2020-09-08-21-58-47
.. nonce: vdjSLH
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`cmath` extension module to multi-phase initialization
(:pep:`489`).
.. bpo: 1635741
.. date: 2020-09-08-20-39-43
.. nonce: jiXmyT
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`!_scproxy` extension module to multi-phase initialization
(:pep:`489`).
.. bpo: 1635741
.. date: 2020-09-07-11-35-02
.. nonce: rvIexb
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`termios` extension module to multi-phase initialization
(:pep:`489`).
.. bpo: 1635741
.. date: 2020-09-07-09-45-47
.. nonce: QuDIut
-.. section: Core and Builtins
+.. section: Library
Convert the :mod:`!_sha256` extension module types to heap types.
.. bpo: 1635741
.. date: 2020-09-01-17-22-35
.. nonce: CnRME3
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`!_overlapped` extension module to multi-phase initialization
(:pep:`489`).
.. bpo: 1635741
.. date: 2020-09-01-17-08-07
.. nonce: X9CZgo
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`!_curses_panel` extension module to multi-phase initialization
(:pep:`489`).
.. bpo: 1635741
.. date: 2020-09-01-17-06-02
.. nonce: 5jZymK
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`!_opcode` extension module to multi-phase initialization
(:pep:`489`).
.. bpo: 41675
.. date: 2020-08-31-14-53-17
.. nonce: VSoqWU
-.. section: Core and Builtins
+.. section: Library
The implementation of :func:`signal.siginterrupt` now uses
:c:func:`!sigaction` (if it is available in the system) instead of the
.. bpo: 1635741
.. date: 2020-08-28-20-54-04
.. nonce: 7ijlcI
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`zlib` extension module to multi-phase initialization
(:pep:`489`).
.. bpo: 40077
.. date: 2020-08-25-22-43-33
.. nonce: vcxSUa
-.. section: Core and Builtins
+.. section: Library
Convert :mod:`!_operator` to use :c:func:`PyType_FromSpec`.
.. bpo: 1635741
.. date: 2020-08-13-07-18-05
.. nonce: FC13e7
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`!_blake2` extension module to the multi-phase initialization
API (:pep:`489`).
.. bpo: 1635741
.. date: 2020-08-10-16-11-32
.. nonce: O0d3ym
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`!_sha1`, :mod:`!_sha512`, and :mod:`!_md5` extension modules to
multi-phase initialization API (:pep:`489`).
.. bpo: 1635741
.. date: 2020-07-06-20-43-19
.. nonce: LYhsni
-.. section: Core and Builtins
+.. section: Library
Port :mod:`winapi` to multiphase initialization
.. bpo: 1635741
.. date: 2020-07-03-23-10-02
.. nonce: F5coWe
-.. section: Core and Builtins
+.. section: Library
Port :mod:`faulthandler` to multiphase initialization.
.. bpo: 1635741
.. date: 2020-07-01-20-17-38
.. nonce: -AtPYu
-.. section: Core and Builtins
+.. section: Library
Port :mod:`sha256` to multiphase initialization
.. bpo: 40077
.. date: 2020-06-18-19-04-30
.. nonce: _yI-ax
-.. section: Core and Builtins
+.. section: Library
Convert :mod:`!_bz2` to use :c:func:`PyType_FromSpec`.
.. bpo: 40950
.. date: 2020-06-12-00-12-28
.. nonce: tzMy7m
-.. section: Core and Builtins
+.. section: Library
Add a state to the :mod:`!nis` module (:pep:`3121`) and apply the multiphase
initialization. Patch by Donghee Na.
.. bpo: 1635741
.. date: 2020-04-10-23-54-57
.. nonce: ZURqoN
-.. section: Core and Builtins
+.. section: Library
Port :mod:`mmap` to multiphase initialization.
.. bpo: 1635741
.. date: 2020-04-05-02-35-08
.. nonce: Kfe9fT
-.. section: Core and Builtins
+.. section: Library
Port :mod:`!_lzma` to multiphase initialization.
.. bpo: 36982
.. date: 2019-05-25-05-27-39
.. nonce: 0UHgfB
-.. section: Core and Builtins
+.. section: Library
Use ncurses extended color functions when available to support terminals
with 256 colors, and add the new function
.. bpo: 41435
.. date: 2020-08-07-13-42-48
.. nonce: qPWjJA
-.. section: Core and Builtins
+.. section: Library
Add ``sys._current_exceptions()`` function to retrieve a dictionary mapping
each thread's identifier to the topmost exception currently active in that
.. bpo: 1635741
.. date: 2020-11-18-23-46-31
.. nonce: GVOQ-m
-.. section: Core and Builtins
+.. section: Library
Port the ``_warnings`` extension module to the multi-phase initialization
API (:pep:`489`). Patch by Victor Stinner.
.. bpo: 40077
.. date: 2020-11-03-21-58-27
.. nonce: a9qM1j
-.. section: Core and Builtins
+.. section: Library
Convert :mod:`queue` to use heap types.
.. bpo: 40077
.. date: 2020-11-02-14-39-48
.. nonce: grY9TG
-.. section: Core and Builtins
+.. section: Library
Convert :mod:`mmap` to use heap types.
.. bpo: 42639
.. date: 2020-12-09-01-55-10
.. nonce: 5pI5HG
-.. section: Core and Builtins
+.. section: Library
Make the :mod:`atexit` module state per-interpreter. It is now safe have
more than one :mod:`atexit` module instance. Patch by Donghee Na and Victor
.. bpo: 42195
.. date: 2020-11-20-00-57-47
.. nonce: HeqcpS
-.. section: Core and Builtins
+.. section: Library
The ``__args__`` of the parameterized generics for :data:`typing.Callable`
and :class:`collections.abc.Callable` are now consistent. The ``__args__``
.. bpo: 40137
.. date: 2020-11-19-23-12-57
.. nonce: bihl9O
-.. section: Core and Builtins
+.. section: Library
Convert functools module to use :c:func:`PyType_FromModuleAndSpec`.
.. bpo: 40077
.. date: 2020-11-03-13-46-10
.. nonce: NfAIdj
-.. section: Core and Builtins
+.. section: Library
Convert :mod:`array` to use heap types, and establish module state for
these.
.. bpo: 42008
.. date: 2020-10-12-14-51-59
.. nonce: ijWw2I
-.. section: Core and Builtins
+.. section: Library
Fix _random.Random() seeding.
.. bpo: 1635741
.. date: 2020-09-12-19-21-52
.. nonce: F2kDrU
-.. section: Core and Builtins
+.. section: Library
Port the :mod:`pyexpat` extension module to multi-phase initialization
(:pep:`489`).
.. bpo: 37324
.. date: 2020-12-12-20-09-12
.. nonce: jB-9_U
-.. section: Core and Builtins
+.. section: Library
Remove deprecated aliases to :ref:`collections-abstract-base-classes` from
the :mod:`collections` module.
.. bpo: 42819
.. date: 2021-01-04-23-54-34
.. nonce: 4KO6wU
-.. section: Core and Builtins
+.. section: Library
:mod:`readline`: Explicitly disable bracketed paste in the interactive
interpreter, even if it's set in the inputrc, is enabled by default (eg GNU
.. bpo: 40692
.. date: 2020-05-19-22-10-05
.. nonce: ajEhrR
-.. section: Core and Builtins
+.. section: Library
In the :class:`concurrent.futures.ProcessPoolExecutor`, validate that
:func:`multiprocess.synchronize` is available on a given platform and rely
.. bpo: 40645
.. date: 2021-03-29-11-55-06
.. nonce: PhaT-B
-.. section: Core and Builtins
+.. section: Library
Fix reference leak in the :mod:`!_hashopenssl` extension. Patch by Pablo
Galindo.
.. bpo: 43908
.. date: 2021-04-26-21-20-41
.. nonce: 2L51nO
-.. section: Core and Builtins
+.. section: Library
Make :mod:`re` types immutable. Patch by Erlend E. Aasland.
.. bpo: 43908
.. date: 2021-04-26-20-59-17
.. nonce: -COW4-
-.. section: Core and Builtins
+.. section: Library
Make the :class:`array.array` type immutable. Patch by Erlend E. Aasland.
.. bpo: 43105
.. date: 2021-03-31-20-35-11
.. nonce: PBVmHm
-.. section: Core and Builtins
+.. section: Library
Importlib now resolves relative paths when creating module spec objects from
file locations.
.. bpo: 44219
.. date: 2021-09-09-10-32-33
.. nonce: WiYyjz
-.. section: Core and Builtins
+.. section: Library
Release the GIL while performing ``isatty`` system calls on arbitrary file
descriptors. In particular, this affects :func:`os.isatty`,
.. bpo: 45121
.. date: 2021-09-07-17-10-16
.. nonce: iG-Hsf
-.. section: Core and Builtins
+.. section: Library
Fix issue where ``Protocol.__init__`` raises ``RecursionError`` when it's
called directly or via ``super()``. Patch provided by Yurii Karabas.
.. bpo: 45012
.. date: 2021-08-31-11-09-52
.. nonce: ueeOcx
-.. section: Core and Builtins
+.. section: Library
In :mod:`posix`, release GIL during ``stat()``, ``lstat()``, and
``fstatat()`` syscalls made by :func:`os.DirEntry.stat`. Patch by Stanisław
.. bpo: 44962
.. date: 2021-08-23-19-55-08
.. nonce: J00ftt
-.. section: Core and Builtins
+.. section: Library
Fix a race in WeakKeyDictionary, WeakValueDictionary and WeakSet when two
threads attempt to commit the last pending removal. This fixes
.. bpo: 44929
.. date: 2021-08-16-23-16-17
.. nonce: qpMEky
-.. section: Core and Builtins
+.. section: Library
Fix some edge cases of ``enum.Flag`` string representation in the REPL.
Patch by Pablo Galindo.
.. bpo: 44611
.. date: 2021-07-16-01-01-11
.. nonce: LcfHN-
-.. section: Core and Builtins
+.. section: Library
On Windows, :func:`os.urandom`: uses BCryptGenRandom API instead of
CryptGenRandom API which is deprecated from Microsoft Windows API. Patch by
.. bpo: 44490
.. date: 2021-07-06-22-22-15
.. nonce: BJxPbZ
-.. section: Core and Builtins
+.. section: Library
:mod:`typing` now searches for type parameters in ``types.Union`` objects.
``get_type_hints`` will also properly resolve annotations with nested
.. bpo: 41486
.. date: 2021-07-04-17-41-47
.. nonce: DiM24a
-.. section: Core and Builtins
+.. section: Library
Fix a memory consumption and copying performance regression in earlier 3.10
beta releases if someone used an output buffer larger than 4GiB with
.. bpo: 44304
.. date: 2021-06-05-02-34-57
.. nonce: _MAoPc
-.. section: Core and Builtins
+.. section: Library
Fix a crash in the :mod:`sqlite3` module that happened when the garbage
collector clears :class:`sqlite.Statement` objects. Patch by Pablo Galindo
.. bpo: 45614
.. date: 2021-11-23-12-06-41
.. nonce: fIekgI
-.. section: Core and Builtins
+.. section: Library
Fix :mod:`traceback` display for exceptions with invalid module name.
.. bpo: 46208
.. date: 2022-01-04-01-53-35
.. nonce: i00Vz5
-.. section: Core and Builtins
+.. section: Library
Fix the regression of os.path.normpath("A/../../B") not returning expected
"../B" but "B".
.. bpo: 46085
.. date: 2021-12-30-00-23-41
.. nonce: bDuJqu
-.. section: Core and Builtins
+.. section: Library
Fix iterator cache mechanism of :class:`OrderedDict`.
.. bpo: 46000
.. date: 2021-12-07-11-42-44
.. nonce: v_ru3k
-.. section: Core and Builtins
+.. section: Library
Improve compatibility of the :mod:`curses` module with NetBSD curses.
.. bpo: 46383
.. date: 2022-01-14-20-55-34
.. nonce: v8MTl4
-.. section: Core and Builtins
+.. section: Library
Fix invalid signature of ``_zoneinfo``'s ``module_free`` function to resolve
a crash on wasm32-emscripten platform.
.. bpo: 30512
.. date: 2021-12-12-00-49-19
.. nonce: nU9E9V
-.. section: Core and Builtins
+.. section: Library
Add CAN Socket support for NetBSD.
.. bpo: 46045
.. date: 2021-12-11-11-36-48
.. nonce: sfThay
-.. section: Core and Builtins
+.. section: Build
Do not use POSIX semaphores on NetBSD
.. bpo: 46794
.. date: 2022-02-22-12-07-53
.. nonce: 6WvJ9o
-.. section: Core and Builtins
+.. section: Library
Bump up the libexpat version into 2.4.6
.. bpo: 46323
.. date: 2022-02-10-02-29-12
.. nonce: HK_cs0
-.. section: Core and Builtins
+.. section: Library
:mod:`ctypes` now allocates memory on the stack instead of on the heap to
pass arguments while calling a Python callback function. Patch by Donghee
.. bpo: 40479
.. date: 2022-02-06-23-08-30
.. nonce: zED3Zu
-.. section: Core and Builtins
+.. section: Library
Add a missing call to ``va_end()`` in ``Modules/_hashopenssl.c``.
.. bpo: 46323
.. date: 2022-02-05-14-46-21
.. nonce: FC1OJg
-.. section: Core and Builtins
+.. section: Library
Use :c:func:`PyObject_Vectorcall` while calling ctypes callback function.
Patch by Donghee Na.
.. bpo: 46968
.. date: 2022-03-17-14-22-23
.. nonce: 4gz4NA
-.. section: Core and Builtins
+.. section: Library
Check for the existence of the "sys/auxv.h" header in :mod:`faulthandler` to
avoid compilation problems in systems where this header doesn't exist. Patch
.. bpo: 46829
.. date: 2022-03-12-21-07-21
.. nonce: cpGoPV
-.. section: Core and Builtins
+.. section: Library
Deprecate passing a message into :meth:`asyncio.Future.cancel` and
:meth:`asyncio.Task.cancel`
.. bpo: 47197
.. date: 2022-04-03-17-21-04
.. nonce: Ji_c30
-.. section: Core and Builtins
+.. section: Library
ctypes used to mishandle ``void`` return types, so that for instance a
function declared like ``ctypes.CFUNCTYPE(None, ctypes.c_int)`` would be
.. bpo: 46045
.. date: 2021-12-11-11-36-48
.. nonce: sfThay
-.. section: Core and Builtins
+.. section: Build
Do not use POSIX semaphores on NetBSD