.. date: 2024-10-05-23-53-06
.. gh-issue: 125008
.. nonce: ETANpd
-.. section: Core and Builtins
+.. section: Library
Fix :func:`tokenize.untokenize` producing invalid syntax for double braces
preceded by certain escape characters.
.. date: 2024-09-02-20-39-10
.. gh-issue: 123614
.. nonce: 26TMHp
-.. section: Core and Builtins
+.. section: Library
Add :func:`turtle.save` to easily save Turtle drawings as PostScript files.
Patch by Marie Roald and Yngve Mardal Moe.
.. date: 2024-07-18-21-19-04
.. gh-issue: 121999
.. nonce: 8IBbTK
-.. section: Core and Builtins
+.. section: Library
The default extraction filter for the :mod:`tarfile` module is now set to
:func:`'data' <tarfile.data_filter>`.
.. date: 2024-06-28-23-17-22
.. gh-issue: 121381
.. nonce: i2xL7P
-.. section: Core and Builtins
+.. section: Library
Remove ``subprocess._USE_VFORK`` escape hatch code and documentation. It was
added just in case, and doesn't have any known cases that require it.
.. date: 2024-06-14-07-52-00
.. gh-issue: 120485
.. nonce: yy4K4b
-.. section: Core and Builtins
+.. section: Library
Add an override of ``allow_reuse_port`` on classes subclassing
``socketserver.TCPServer`` where ``allow_reuse_address`` is also overridden.
.. date: 2024-06-12-18-23-15
.. gh-issue: 120380
.. nonce: edtqjq
-.. section: Core and Builtins
+.. section: Library
Fix Python implementation of :class:`pickle.Pickler` for :class:`bytes` and
:class:`bytearray` objects when using protocol version 5. Patch by Bénédikt
.. date: 2024-04-27-18-36-46
.. gh-issue: 115801
.. nonce: SVeHSy
-.. section: Core and Builtins
+.. section: Library
Raise ``TypeError`` when passing a string to :func:`difflib.unified_diff`
and :func:`difflib.context_diff`.
.. date: 2024-11-09-16-10-22
.. gh-issue: 126066
.. nonce: 9zs4m4
-.. section: Core and Builtins
+.. section: Library
Fix :mod:`importlib` to not write an incomplete .pyc files when a ulimit or
some other operating system mechanism is preventing the write to go through
.. date: 2024-11-02-18-01-31
.. gh-issue: 126209
.. nonce: 2ZIhrS
-.. section: Core and Builtins
+.. section: Library
Fix an issue with ``skip_file_prefixes`` parameter which resulted in an
inconsistent behaviour between the C and Python implementations of
.. date: 2024-05-12-03-10-36
.. gh-issue: 118950
.. nonce: 5Wc4vp
-.. section: Core and Builtins
+.. section: Library
Fix bug where SSLProtocol.connection_lost wasn't getting called when OSError
was thrown on writing to socket.
.. date: 2023-12-30-00-21-45
.. gh-issue: 113570
.. nonce: _XQgsW
-.. section: Core and Builtins
+.. section: Library
Fixed a bug in ``reprlib.repr`` where it incorrectly called the repr method
on shadowed Python built-in types.
.. date: 2024-11-23-04-54-42
.. gh-issue: 127133
.. nonce: WMoJjF
-.. section: Core and Builtins
+.. section: Library
Calling :meth:`argparse.ArgumentParser.add_argument_group` on an argument
group, and calling :meth:`argparse.ArgumentParser.add_argument_group` or
.. date: 2024-12-23-11-14-07
.. gh-issue: 128192
.. nonce: 02mEhD
-.. section: Core and Builtins
+.. section: Library
Upgrade HTTP digest authentication algorithm for :mod:`urllib.request` by
supporting SHA-256 digest authentication as specified in :rfc:`7616`.
.. date: 2024-12-17-18-20-37
.. gh-issue: 128035
.. nonce: JwqHdB
-.. section: Core and Builtins
+.. section: Library
Indicate through :data:`ssl.HAS_PHA` whether the :mod:`ssl` module supports
TLSv1.3 post-handshake client authentication (PHA). Patch by Will
.. date: 2025-01-28-06-23-59
.. gh-issue: 129345
.. nonce: uOjkML
-.. section: Core and Builtins
+.. section: Library
Fix null pointer dereference in :func:`syslog.openlog` when an audit hook
raises an exception.
.. date: 2024-11-03-06-05-16
.. gh-issue: 126349
.. nonce: 7YwWsI
-.. section: Core and Builtins
+.. section: Library
Add :func:`turtle.fill`, :func:`turtle.poly` and :func:`turtle.no_animation`
context managers. Patch by Marie Roald and Yngve Mardal Moe.
.. date: 2023-12-04-15-53-25
.. gh-issue: 112713
.. nonce: Zrhv77
-.. section: Core and Builtins
+.. section: Library
Added support for the ``Partitioned`` cookie flag in :mod:`http.cookies`.
.. date: 2025-02-11-20-38-37
.. gh-issue: 129983
.. nonce: _1Fujo
-.. section: Core and Builtins
+.. section: Library
Fix data race in compile_template in :file:`sre.c`.
.. date: 2022-12-21-14-28-01
.. gh-issue: 100388
.. nonce: vne8ky
-.. section: Core and Builtins
+.. section: Library
Fix the ``platform._sys_version()`` method when ``__DATE__`` is undefined at
buildtime by changing default buildtime datetime string to the UNIX epoch.
.. date: 2025-02-15-14-36-32
.. gh-issue: 99108
.. nonce: u6CfmK
-.. section: Core and Builtins
+.. section: Library
Add support for built-in implementation of HMAC (:rfc:`2104`) based on
HACL*. Patch by Bénédikt Tran.
.. date: 2025-04-30-13-09-20
.. gh-issue: 133194
.. nonce: 25_G5c
-.. section: Core and Builtins
+.. section: Library
:func:`ast.parse` will no longer parse new :pep:`758` syntax with older
*feature_version* passed.
.. date: 2025-04-19-18-07-34
.. gh-issue: 132737
.. nonce: 9mW1il
-.. section: Core and Builtins
+.. section: Library
Support profiling code that requires ``__main__``, such as :mod:`pickle`.
.. date: 2022-12-29-19-10-36
.. gh-issue: 89562
.. nonce: g8m8RC
-.. section: Core and Builtins
+.. section: Library
Remove ``hostflags`` member from ``PySSLContext`` struct.
.. date: 2025-05-22-14-48-19
.. gh-issue: 134381
.. nonce: 2BXhth
-.. section: Core and Builtins
+.. section: Library
Fix :exc:`RuntimeError` when using a not-started :class:`threading.Thread`
after calling :func:`os.fork`
.. date: 2025-06-11-15-08-10
.. gh-issue: 127319
.. nonce: OVGFSZ
-.. section: Core and Builtins
+.. section: Library
Set the ``allow_reuse_port`` class variable to ``False`` on the XMLRPC,
logging, and HTTP servers. This matches the behavior in prior Python
.. date: 2025-06-02-13-57-40
.. gh-issue: 116738
.. nonce: ycJsL8
-.. section: Core and Builtins
+.. section: Library
Make methods in :mod:`heapq` thread-safe on the :term:`free threaded <free
threading>` build.
.. date: 2025-05-30-15-56-19
.. gh-issue: 134908
.. nonce: 3a7PxM
-.. section: Core and Builtins
+.. section: Library
Fix crash when iterating over lines in a text file on the :term:`free
threaded <free threading>` build.
.. date: 2025-07-12-09-59-14
.. gh-issue: 136421
.. nonce: ZD1rNj
-.. section: Core and Builtins
+.. section: Library
Fix crash when initializing :mod:`datetime` concurrently.
.. date: 2025-06-12-00-03-34
.. gh-issue: 116738
.. nonce: iBBAdo
-.. section: Core and Builtins
+.. section: Library
Make functions in :mod:`grp` thread-safe on the :term:`free threaded <free
threading>` build.
.. date: 2025-11-25-13-13-34
.. gh-issue: 116738
.. nonce: MnZRdV
-.. section: Core and Builtins
+.. section: Library
Fix thread safety issue with :mod:`re` scanner objects in free-threaded
builds.
.. date: 2025-11-10-00-14-20
.. gh-issue: 116738
.. nonce: IxliC_
-.. section: Core and Builtins
+.. section: Library
Make csv module thread-safe on the :term:`free threaded <free threading>`
build.
.. date: 2025-11-02-15-28-33
.. gh-issue: 140260
.. nonce: JNzlGz
-.. section: Core and Builtins
+.. section: Library
Fix :mod:`struct` data race in endian table initialization with
subinterpreters. Patch by Shamil Abdulaev.
.. date: 2025-10-21-09-20-03
.. gh-issue: 140398
.. nonce: SoABwJ
-.. section: Core and Builtins
+.. section: Library
Fix memory leaks in :mod:`readline` functions
:func:`~readline.read_init_file`, :func:`~readline.read_history_file`,
.. date: 2025-09-21-14-33-17
.. gh-issue: 116738
.. nonce: vNaI4h
-.. section: Core and Builtins
+.. section: Library
Make :mod:`mmap` thread-safe on the :term:`free threaded <free threading>`
build.
.. date: 2025-08-28-09-29-46
.. gh-issue: 116738
.. nonce: yLZJpV
-.. section: Core and Builtins
+.. section: Library
Make :mod:`cProfile` thread-safe on the :term:`free threaded <free
threading>` build.
.. date: 2025-08-21-06-31-42
.. gh-issue: 138004
.. nonce: FH2Hre
-.. section: Core and Builtins
+.. section: Library
On Solaris/Illumos platforms, thread names are now encoded as ASCII to avoid
errors on systems (e.g. OpenIndiana) that don't support non-ASCII names.
.. date: 2025-12-01-10-03-08
.. gh-issue: 116738
.. nonce: 972YsG
-.. section: Core and Builtins
+.. section: Library
Fix :mod:`cmath` data race when initializing trigonometric tables with
subinterpreters.