Skip to content

Commit ac7b1aa

Browse files
Merge branch '3.13' into backport-bc1be4f-3.13
2 parents 46c9042 + 2d322c4 commit ac7b1aa

343 files changed

Lines changed: 5020 additions & 3089 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Lib/ast.py @isidentical
171171
**/*multiprocessing* @gpshead
172172

173173
# SQLite 3
174-
**/*sqlite* @berkerpeksag @erlend-aasland
174+
**/*sqlite* @erlend-aasland
175175

176176
# subprocess
177177
/Lib/subprocess.py @gpshead

.github/workflows/documentation-links.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/mypy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ jobs:
6565
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6666
with:
6767
persist-credentials: false
68-
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
68+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
6969
with:
7070
python-version: "3.13"
71-
cache: pip
72-
cache-dependency-path: Tools/requirements-dev.txt
73-
- run: pip install -r Tools/requirements-dev.txt
71+
activate-environment: true
72+
cache-dependency-glob: Tools/requirements-dev.txt
73+
- run: uv pip install -r Tools/requirements-dev.txt
7474
- run: python3 Misc/mypy/make_symlinks.py --symlink
75-
- run: mypy --config-file ${{ matrix.target }}/mypy.ini
75+
- run: mypy --num-workers 4 --config-file ${{ matrix.target }}/mypy.ini

.github/workflows/reusable-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
3939
- name: Install Homebrew dependencies
4040
run: |
41-
brew install pkg-config openssl@3.0 xz gdbm tcl-tk@8
41+
brew bundle --file=Misc/Brewfile
4242
# Because alternate versions are not symlinked into place by default:
4343
brew link --overwrite tcl-tk@8
4444
- name: Configure CPython

Doc/c-api/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ an error value).
412412
413413
.. c:function:: int PyErr_WarnFormat(PyObject *category, Py_ssize_t stack_level, const char *format, ...)
414414
415-
Function similar to :c:func:`PyErr_WarnEx`, but use
415+
Function similar to :c:func:`PyErr_WarnEx`, but uses
416416
:c:func:`PyUnicode_FromFormat` to format the warning message. *format* is
417417
an ASCII-encoded string.
418418

Doc/c-api/typehints.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ two types exist -- :ref:`GenericAlias <types-genericalias>` and
3131
static PyMethodDef my_obj_methods[] = {
3232
// Other methods.
3333
...
34-
{"__class_getitem__", Py_GenericAlias, METH_O|METH_CLASS, "See PEP 585"}
34+
{"__class_getitem__", Py_GenericAlias, METH_O|METH_CLASS, "my_obj is generic over its contained type"}
3535
...
3636
}
3737

Doc/c-api/unicode.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ APIs:
682682
Fail if *fill_char* is bigger than the string maximum character, or if the
683683
string has more than 1 reference.
684684
685-
Return the number of written character, or return ``-1`` and raise an
685+
Return the number of written characters, or return ``-1`` and raise an
686686
exception on error.
687687
688688
.. versionadded:: 3.3
@@ -1082,7 +1082,7 @@ These are the UTF-8 codec APIs:
10821082
.. versionadded:: 3.3
10831083
10841084
.. versionchanged:: 3.7
1085-
The return type is now ``const char *`` rather of ``char *``.
1085+
The return type is now ``const char *`` rather than ``char *``.
10861086
10871087
.. versionchanged:: 3.10
10881088
This function is a part of the :ref:`limited API <limited-c-api>`.
@@ -1104,7 +1104,7 @@ These are the UTF-8 codec APIs:
11041104
.. versionadded:: 3.3
11051105
11061106
.. versionchanged:: 3.7
1107-
The return type is now ``const char *`` rather of ``char *``.
1107+
The return type is now ``const char *`` rather than ``char *``.
11081108
11091109
11101110
UTF-32 Codecs

Doc/conf.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@
88

99
import os
1010
import sys
11-
from importlib import import_module
1211
from importlib.util import find_spec
1312

1413
# Make our custom extensions available to Sphinx
1514
sys.path.append(os.path.abspath('tools/extensions'))
1615
sys.path.append(os.path.abspath('includes'))
1716

18-
# Python specific content from Doc/Tools/extensions/pyspecific.py
19-
from pyspecific import SOURCE_URI
17+
from patchlevel import get_header_version_info, get_version_info
2018

2119
# General configuration
2220
# ---------------------
@@ -75,7 +73,7 @@
7573
# We look for the Include/patchlevel.h file in the current Python source tree
7674
# and replace the values accordingly.
7775
# See Doc/tools/extensions/patchlevel.py
78-
version, release = import_module('patchlevel').get_version_info()
76+
version, release = get_version_info()
7977

8078
rst_epilog = f"""
8179
.. |python_version_literal| replace:: ``Python {version}``
@@ -547,16 +545,20 @@
547545
r'https://unix.org/version2/whatsnew/lp64_wp.html',
548546
]
549547

548+
550549
# Options for sphinx.ext.extlinks
551550
# -------------------------------
552551

552+
v = get_header_version_info()
553+
branch = "main" if v.releaselevel == "alpha" else f"{v.major}.{v.minor}"
554+
553555
# This config is a dictionary of external sites,
554556
# mapping unique short aliases to a base URL and a prefix.
555557
# https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html
556558
extlinks = {
557559
"oss-fuzz": ("https://issues.oss-fuzz.com/issues/%s", "#%s"),
558560
"pypi": ("https://pypi.org/project/%s/", "%s"),
559-
"source": (SOURCE_URI, "%s"),
561+
"source": (f"https://github.com/python/cpython/tree/{branch}/%s", "%s"),
560562
}
561563
extlinks_detect_hardcoded_links = True
562564

Doc/data/stable_abi.dat

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Doc/howto/functional.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ first calculation. ::
10421042
>>> functools.reduce(operator.concat, [])
10431043
Traceback (most recent call last):
10441044
...
1045-
TypeError: reduce() of empty sequence with no initial value
1045+
TypeError: reduce() of empty iterable with no initial value
10461046
>>> functools.reduce(operator.mul, [1, 2, 3], 1)
10471047
6
10481048
>>> functools.reduce(operator.mul, [], 1)

0 commit comments

Comments
 (0)