]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Python 3.13.5 v3.13.5
authorThomas Wouters <thomas@python.org>
Wed, 11 Jun 2025 15:36:41 +0000 (17:36 +0200)
committerThomas Wouters <thomas@python.org>
Wed, 11 Jun 2025 15:36:57 +0000 (17:36 +0200)
17 files changed:
Include/patchlevel.h
Lib/pydoc_data/topics.py
Misc/NEWS.d/3.13.5.rst [new file with mode: 0644]
Misc/NEWS.d/next/C API/2025-06-02-13-19-22.gh-issue-134989.sDDyBN.rst [deleted file]
Misc/NEWS.d/next/C API/2025-06-05-11-06-07.gh-issue-134989.74p4ud.rst [deleted file]
Misc/NEWS.d/next/Core_and_Builtins/2025-06-11-14-09-12.gh-issue-135171.VUdivl.rst [deleted file]
Misc/NEWS.d/next/Library/2025-04-07-06-41-54.gh-issue-131884.ym9BJN.rst [deleted file]
Misc/NEWS.d/next/Library/2025-04-21-01-03-15.gh-issue-127081.WXRliX.rst [deleted file]
Misc/NEWS.d/next/Library/2025-05-18-23-46-21.gh-issue-134152.30HwbX.rst [deleted file]
Misc/NEWS.d/next/Library/2025-05-25-23-23-05.gh-issue-134151.13Wwsb.rst [deleted file]
Misc/NEWS.d/next/Library/2025-06-08-14-50-34.gh-issue-135276.ZLUhV1.rst [deleted file]
Misc/NEWS.d/next/Library/2025-06-10-00-42-30.gh-issue-135321.UHh9jT.rst [deleted file]
Misc/NEWS.d/next/Library/2025-06-10-10-00-17.gh-issue-135326.sOHe_p.rst [deleted file]
Misc/NEWS.d/next/Library/2025-06-10-16-11-00.gh-issue-133967.P0c24q.rst [deleted file]
Misc/NEWS.d/next/Tests/2025-06-04-13-07-44.gh-issue-135120.NapnZT.rst [deleted file]
Misc/NEWS.d/next/Windows/2025-06-05-13-52-36.gh-issue-135151.4PfNZQ.rst [deleted file]
README.rst

index be39694d03ebf0ef8a587255edba0b11b2240cda..7447c0b19d8612b53d9abcbcd6c7a75a18020d2f 100644 (file)
 /*--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.
index 063c49958421f19715f57509bb60b626983583eb..e807ea957368f0e901eef030b893efef07bb39c9 100644 (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
 ========================
diff --git a/Misc/NEWS.d/3.13.5.rst b/Misc/NEWS.d/3.13.5.rst
new file mode 100644 (file)
index 0000000..fbe6ebb
--- /dev/null
@@ -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.
diff --git a/Misc/NEWS.d/next/C API/2025-06-02-13-19-22.gh-issue-134989.sDDyBN.rst b/Misc/NEWS.d/next/C API/2025-06-02-13-19-22.gh-issue-134989.sDDyBN.rst
deleted file mode 100644 (file)
index e49f765..0000000
+++ /dev/null
@@ -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.
diff --git a/Misc/NEWS.d/next/C API/2025-06-05-11-06-07.gh-issue-134989.74p4ud.rst b/Misc/NEWS.d/next/C API/2025-06-05-11-06-07.gh-issue-134989.74p4ud.rst
deleted file mode 100644 (file)
index 844e9a6..0000000
+++ /dev/null
@@ -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.
diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-11-14-09-12.gh-issue-135171.VUdivl.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-06-11-14-09-12.gh-issue-135171.VUdivl.rst
deleted file mode 100644 (file)
index ec8a8ca..0000000
+++ /dev/null
@@ -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.
diff --git a/Misc/NEWS.d/next/Library/2025-04-07-06-41-54.gh-issue-131884.ym9BJN.rst b/Misc/NEWS.d/next/Library/2025-04-07-06-41-54.gh-issue-131884.ym9BJN.rst
deleted file mode 100644 (file)
index d9e2eae..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Fix formatting issues in :func:`json.dump` when both *indent* and *skipkeys* are used.
diff --git a/Misc/NEWS.d/next/Library/2025-04-21-01-03-15.gh-issue-127081.WXRliX.rst b/Misc/NEWS.d/next/Library/2025-04-21-01-03-15.gh-issue-127081.WXRliX.rst
deleted file mode 100644 (file)
index 63fed60..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Fix libc thread safety issues with :mod:`os` by replacing ``getlogin`` with
-``getlogin_r`` re-entrant version.
diff --git a/Misc/NEWS.d/next/Library/2025-05-18-23-46-21.gh-issue-134152.30HwbX.rst b/Misc/NEWS.d/next/Library/2025-05-18-23-46-21.gh-issue-134152.30HwbX.rst
deleted file mode 100644 (file)
index 911a4a5..0000000
+++ /dev/null
@@ -1 +0,0 @@
-:mod:`email`: Fix parsing of email message ID with invalid domain.
diff --git a/Misc/NEWS.d/next/Library/2025-05-25-23-23-05.gh-issue-134151.13Wwsb.rst b/Misc/NEWS.d/next/Library/2025-05-25-23-23-05.gh-issue-134151.13Wwsb.rst
deleted file mode 100644 (file)
index ecdde24..0000000
+++ /dev/null
@@ -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.
diff --git a/Misc/NEWS.d/next/Library/2025-06-08-14-50-34.gh-issue-135276.ZLUhV1.rst b/Misc/NEWS.d/next/Library/2025-06-08-14-50-34.gh-issue-135276.ZLUhV1.rst
deleted file mode 100644 (file)
index e630b7d..0000000
+++ /dev/null
@@ -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.
diff --git a/Misc/NEWS.d/next/Library/2025-06-10-00-42-30.gh-issue-135321.UHh9jT.rst b/Misc/NEWS.d/next/Library/2025-06-10-00-42-30.gh-issue-135321.UHh9jT.rst
deleted file mode 100644 (file)
index 9e63d8e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Raise a correct exception for values greater than 0x7fffffff for the ``BINSTRING`` opcode in the C implementation of :mod:`pickle`.
diff --git a/Misc/NEWS.d/next/Library/2025-06-10-10-00-17.gh-issue-135326.sOHe_p.rst b/Misc/NEWS.d/next/Library/2025-06-10-10-00-17.gh-issue-135326.sOHe_p.rst
deleted file mode 100644 (file)
index c83f67b..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Restore support of integer-like objects with :meth:`!__index__` in
-:func:`random.getrandbits`.
diff --git a/Misc/NEWS.d/next/Library/2025-06-10-16-11-00.gh-issue-133967.P0c24q.rst b/Misc/NEWS.d/next/Library/2025-06-10-16-11-00.gh-issue-133967.P0c24q.rst
deleted file mode 100644 (file)
index 1976981..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Do not normalize :mod:`locale` name 'C.UTF-8' to 'en_US.UTF-8'.
diff --git a/Misc/NEWS.d/next/Tests/2025-06-04-13-07-44.gh-issue-135120.NapnZT.rst b/Misc/NEWS.d/next/Tests/2025-06-04-13-07-44.gh-issue-135120.NapnZT.rst
deleted file mode 100644 (file)
index 7721737..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Add :func:`!test.support.subTests`.
diff --git a/Misc/NEWS.d/next/Windows/2025-06-05-13-52-36.gh-issue-135151.4PfNZQ.rst b/Misc/NEWS.d/next/Windows/2025-06-05-13-52-36.gh-issue-135151.4PfNZQ.rst
deleted file mode 100644 (file)
index 06039a8..0000000
+++ /dev/null
@@ -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.
index 46958d3640b24df5cff79d5e4bb05678c205d8b7..8e37aa2a21dba3099c70e59afa705e4f287326eb 100644 (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