Python 3.13.5

This commit is contained in:
Thomas Wouters 2025-06-11 17:36:41 +02:00
parent d24d925ab7
commit 6cb20a219a
17 changed files with 136 additions and 28 deletions

View file

@ -18,12 +18,12 @@
/*--start constants--*/
#define PY_MAJOR_VERSION 3
#define PY_MINOR_VERSION 13
#define PY_MICRO_VERSION 4
#define PY_MICRO_VERSION 5
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
#define PY_RELEASE_SERIAL 0
/* Version as a string */
#define PY_VERSION "3.13.4+"
#define PY_VERSION "3.13.5"
/*--end constants--*/
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

View file

@ -1,4 +1,4 @@
# Autogenerated by Sphinx on Tue Jun 3 17:34:20 2025
# Autogenerated by Sphinx on Wed Jun 11 17:36:53 2025
# as part of the release process.
topics = {
@ -11967,7 +11967,7 @@ operations. [3]
| "s * n" or "n * s" | equivalent to adding *s* to | (2)(7) |
| | itself *n* times | |
+----------------------------+----------------------------------+------------+
| "s[i]" | *i*th item of *s*, origin 0 | (3) |
| "s[i]" | *i*th item of *s*, origin 0 | (3)(9) |
+----------------------------+----------------------------------+------------+
| "s[i:j]" | slice of *s* from *i* to *j* | (3)(4) |
+----------------------------+----------------------------------+------------+
@ -12091,6 +12091,8 @@ Notes:
returned index being relative to the start of the sequence rather
than the start of the slice.
9. An "IndexError" is raised if *i* is outside the sequence range.
Immutable Sequence Types
========================

129
Misc/NEWS.d/3.13.5.rst Normal file
View file

@ -0,0 +1,129 @@
.. date: 2025-06-05-13-52-36
.. gh-issue: 135151
.. nonce: 4PfNZQ
.. release date: 2025-06-11
.. section: Windows
Avoid distributing modified :file:`pyconfig.h` in the traditional installer.
Extension module builds must always specify ``Py_GIL_DISABLED`` when
targeting the free-threaded runtime.
..
.. date: 2025-06-04-13-07-44
.. gh-issue: 135120
.. nonce: NapnZT
.. section: Tests
Add :func:`!test.support.subTests`.
..
.. date: 2025-06-10-16-11-00
.. gh-issue: 133967
.. nonce: P0c24q
.. section: Library
Do not normalize :mod:`locale` name 'C.UTF-8' to 'en_US.UTF-8'.
..
.. date: 2025-06-10-10-00-17
.. gh-issue: 135326
.. nonce: sOHe_p
.. section: Library
Restore support of integer-like objects with :meth:`!__index__` in
:func:`random.getrandbits`.
..
.. date: 2025-06-10-00-42-30
.. gh-issue: 135321
.. nonce: UHh9jT
.. section: Library
Raise a correct exception for values greater than 0x7fffffff for the
``BINSTRING`` opcode in the C implementation of :mod:`pickle`.
..
.. date: 2025-06-08-14-50-34
.. gh-issue: 135276
.. nonce: ZLUhV1
.. section: Library
Backported bugfixes in zipfile.Path from zipp 3.23. Fixed ``.name``,
``.stem`` and other basename-based properties on Windows when working with a
zipfile on disk.
..
.. date: 2025-05-25-23-23-05
.. gh-issue: 134151
.. nonce: 13Wwsb
.. section: Library
:mod:`email`: Fix :exc:`TypeError` in :func:`email.utils.decode_params` when
sorting :rfc:`2231` continuations that contain an unnumbered section.
..
.. date: 2025-05-18-23-46-21
.. gh-issue: 134152
.. nonce: 30HwbX
.. section: Library
:mod:`email`: Fix parsing of email message ID with invalid domain.
..
.. date: 2025-04-21-01-03-15
.. gh-issue: 127081
.. nonce: WXRliX
.. section: Library
Fix libc thread safety issues with :mod:`os` by replacing ``getlogin`` with
``getlogin_r`` re-entrant version.
..
.. date: 2025-04-07-06-41-54
.. gh-issue: 131884
.. nonce: ym9BJN
.. section: Library
Fix formatting issues in :func:`json.dump` when both *indent* and *skipkeys*
are used.
..
.. date: 2025-06-11-14-09-12
.. gh-issue: 135171
.. nonce: VUdivl
.. section: Core and Builtins
Roll back changes to generator and list comprehensions that went into 3.13.4
to fix GH-127682, but which involved semantic and bytecode changes not
appropriate for a bugfix release.
..
.. date: 2025-06-05-11-06-07
.. gh-issue: 134989
.. nonce: 74p4ud
.. section: C API
Fix ``Py_RETURN_NONE``, ``Py_RETURN_TRUE`` and ``Py_RETURN_FALSE`` macros in
the limited C API 3.11 and older: don't treat ``Py_None``, ``Py_True`` and
``Py_False`` as immortal. Patch by Victor Stinner.
..
.. date: 2025-06-02-13-19-22
.. gh-issue: 134989
.. nonce: sDDyBN
.. section: C API
Implement :c:func:`PyObject_DelAttr` and :c:func:`PyObject_DelAttrString` as
macros in the limited C API 3.12 and older. Patch by Victor Stinner.

View file

@ -1,2 +0,0 @@
Implement :c:func:`PyObject_DelAttr` and :c:func:`PyObject_DelAttrString` as
macros in the limited C API 3.12 and older. Patch by Victor Stinner.

View file

@ -1,3 +0,0 @@
Fix ``Py_RETURN_NONE``, ``Py_RETURN_TRUE`` and ``Py_RETURN_FALSE`` macros in
the limited C API 3.11 and older: don't treat ``Py_None``, ``Py_True`` and
``Py_False`` as immortal. Patch by Victor Stinner.

View file

@ -1 +0,0 @@
Roll back changes to generator and list comprehensions that went into 3.13.4 to fix GH-127682, but which involved semantic and bytecode changes not appropriate for a bugfix release.

View file

@ -1 +0,0 @@
Fix formatting issues in :func:`json.dump` when both *indent* and *skipkeys* are used.

View file

@ -1,2 +0,0 @@
Fix libc thread safety issues with :mod:`os` by replacing ``getlogin`` with
``getlogin_r`` re-entrant version.

View file

@ -1 +0,0 @@
:mod:`email`: Fix parsing of email message ID with invalid domain.

View file

@ -1,2 +0,0 @@
:mod:`email`: Fix :exc:`TypeError` in :func:`email.utils.decode_params`
when sorting :rfc:`2231` continuations that contain an unnumbered section.

View file

@ -1,3 +0,0 @@
Backported bugfixes in zipfile.Path from zipp 3.23. Fixed
``.name``, ``.stem`` and other basename-based properties on Windows when
working with a zipfile on disk.

View file

@ -1 +0,0 @@
Raise a correct exception for values greater than 0x7fffffff for the ``BINSTRING`` opcode in the C implementation of :mod:`pickle`.

View file

@ -1,2 +0,0 @@
Restore support of integer-like objects with :meth:`!__index__` in
:func:`random.getrandbits`.

View file

@ -1 +0,0 @@
Do not normalize :mod:`locale` name 'C.UTF-8' to 'en_US.UTF-8'.

View file

@ -1 +0,0 @@
Add :func:`!test.support.subTests`.

View file

@ -1,3 +0,0 @@
Avoid distributing modified :file:`pyconfig.h` in the traditional installer.
Extension module builds must always specify ``Py_GIL_DISABLED`` when
targeting the free-threaded runtime.

View file

@ -1,4 +1,4 @@
This is Python version 3.13.4
This is Python version 3.13.5
=============================
.. image:: https://github.com/python/cpython/workflows/Tests/badge.svg