From 6cb20a219a860eaf687b2d968b41c480c7461909 Mon Sep 17 00:00:00 2001
From: Thomas Wouters <thomas@python.org>
Date: Wed, 11 Jun 2025 17:36:41 +0200
Subject: Python 3.13.5

---
 Include/patchlevel.h                               |   4 +-
 Lib/pydoc_data/topics.py                           |   6 +-
 Misc/NEWS.d/3.13.5.rst                             | 129 +++++++++++++++++++++
 .../2025-06-02-13-19-22.gh-issue-134989.sDDyBN.rst |   2 -
 .../2025-06-05-11-06-07.gh-issue-134989.74p4ud.rst |   3 -
 .../2025-06-11-14-09-12.gh-issue-135171.VUdivl.rst |   1 -
 .../2025-04-07-06-41-54.gh-issue-131884.ym9BJN.rst |   1 -
 .../2025-04-21-01-03-15.gh-issue-127081.WXRliX.rst |   2 -
 .../2025-05-18-23-46-21.gh-issue-134152.30HwbX.rst |   1 -
 .../2025-05-25-23-23-05.gh-issue-134151.13Wwsb.rst |   2 -
 .../2025-06-08-14-50-34.gh-issue-135276.ZLUhV1.rst |   3 -
 .../2025-06-10-00-42-30.gh-issue-135321.UHh9jT.rst |   1 -
 .../2025-06-10-10-00-17.gh-issue-135326.sOHe_p.rst |   2 -
 .../2025-06-10-16-11-00.gh-issue-133967.P0c24q.rst |   1 -
 .../2025-06-04-13-07-44.gh-issue-135120.NapnZT.rst |   1 -
 .../2025-06-05-13-52-36.gh-issue-135151.4PfNZQ.rst |   3 -
 README.rst                                         |   2 +-
 17 files changed, 136 insertions(+), 28 deletions(-)
 create mode 100644 Misc/NEWS.d/3.13.5.rst
 delete mode 100644 Misc/NEWS.d/next/C API/2025-06-02-13-19-22.gh-issue-134989.sDDyBN.rst
 delete mode 100644 Misc/NEWS.d/next/C API/2025-06-05-11-06-07.gh-issue-134989.74p4ud.rst
 delete mode 100644 Misc/NEWS.d/next/Core_and_Builtins/2025-06-11-14-09-12.gh-issue-135171.VUdivl.rst
 delete mode 100644 Misc/NEWS.d/next/Library/2025-04-07-06-41-54.gh-issue-131884.ym9BJN.rst
 delete mode 100644 Misc/NEWS.d/next/Library/2025-04-21-01-03-15.gh-issue-127081.WXRliX.rst
 delete mode 100644 Misc/NEWS.d/next/Library/2025-05-18-23-46-21.gh-issue-134152.30HwbX.rst
 delete mode 100644 Misc/NEWS.d/next/Library/2025-05-25-23-23-05.gh-issue-134151.13Wwsb.rst
 delete mode 100644 Misc/NEWS.d/next/Library/2025-06-08-14-50-34.gh-issue-135276.ZLUhV1.rst
 delete mode 100644 Misc/NEWS.d/next/Library/2025-06-10-00-42-30.gh-issue-135321.UHh9jT.rst
 delete mode 100644 Misc/NEWS.d/next/Library/2025-06-10-10-00-17.gh-issue-135326.sOHe_p.rst
 delete mode 100644 Misc/NEWS.d/next/Library/2025-06-10-16-11-00.gh-issue-133967.P0c24q.rst
 delete mode 100644 Misc/NEWS.d/next/Tests/2025-06-04-13-07-44.gh-issue-135120.NapnZT.rst
 delete mode 100644 Misc/NEWS.d/next/Windows/2025-06-05-13-52-36.gh-issue-135151.4PfNZQ.rst

diff --git a/Include/patchlevel.h b/Include/patchlevel.h
index be39694..7447c0b 100644
--- a/Include/patchlevel.h
+++ b/Include/patchlevel.h
@@ -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.
diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py
index 063c499..e807ea9 100644
--- a/Lib/pydoc_data/topics.py
+++ b/Lib/pydoc_data/topics.py
@@ -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
index 0000000..fbe6ebb
--- /dev/null
+++ b/Misc/NEWS.d/3.13.5.rst
@@ -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
index e49f765..0000000
--- a/Misc/NEWS.d/next/C API/2025-06-02-13-19-22.gh-issue-134989.sDDyBN.rst	
+++ /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
index 844e9a6..0000000
--- a/Misc/NEWS.d/next/C API/2025-06-05-11-06-07.gh-issue-134989.74p4ud.rst	
+++ /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
index ec8a8ca..0000000
--- a/Misc/NEWS.d/next/Core_and_Builtins/2025-06-11-14-09-12.gh-issue-135171.VUdivl.rst
+++ /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
index d9e2eae..0000000
--- a/Misc/NEWS.d/next/Library/2025-04-07-06-41-54.gh-issue-131884.ym9BJN.rst
+++ /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
index 63fed60..0000000
--- a/Misc/NEWS.d/next/Library/2025-04-21-01-03-15.gh-issue-127081.WXRliX.rst
+++ /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
index 911a4a5..0000000
--- a/Misc/NEWS.d/next/Library/2025-05-18-23-46-21.gh-issue-134152.30HwbX.rst
+++ /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
index ecdde24..0000000
--- a/Misc/NEWS.d/next/Library/2025-05-25-23-23-05.gh-issue-134151.13Wwsb.rst
+++ /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
index e630b7d..0000000
--- a/Misc/NEWS.d/next/Library/2025-06-08-14-50-34.gh-issue-135276.ZLUhV1.rst
+++ /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
index 9e63d8e..0000000
--- a/Misc/NEWS.d/next/Library/2025-06-10-00-42-30.gh-issue-135321.UHh9jT.rst
+++ /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
index c83f67b..0000000
--- a/Misc/NEWS.d/next/Library/2025-06-10-10-00-17.gh-issue-135326.sOHe_p.rst
+++ /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
index 1976981..0000000
--- a/Misc/NEWS.d/next/Library/2025-06-10-16-11-00.gh-issue-133967.P0c24q.rst
+++ /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
index 7721737..0000000
--- a/Misc/NEWS.d/next/Tests/2025-06-04-13-07-44.gh-issue-135120.NapnZT.rst
+++ /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
index 06039a8..0000000
--- a/Misc/NEWS.d/next/Windows/2025-06-05-13-52-36.gh-issue-135151.4PfNZQ.rst
+++ /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.
diff --git a/README.rst b/README.rst
index 46958d3..8e37aa2 100644
--- a/README.rst
+++ b/README.rst
@@ -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
-- 
cgit v0.12

