Skip to content

Commit 2352700

Browse files
Merge branch 'main' into deprecations
2 parents d4926e0 + f1a47e7 commit 2352700

242 files changed

Lines changed: 3612 additions & 23127 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: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,9 @@ Lib/shutil.py @giampaolo
573573
Lib/test/test_shutil.py @giampaolo
574574

575575
# Site
576-
Lib/site.py @FFY00
577-
Lib/test/test_site.py @FFY00
578-
Doc/library/site.rst @FFY00
576+
Lib/site.py @FFY00 @warsaw
577+
Lib/test/test_site.py @FFY00 @warsaw
578+
Doc/library/site.rst @FFY00 @warsaw
579579

580580
# string.templatelib
581581
Doc/library/string.templatelib.rst @lysnikolaou @AA-Turner
@@ -586,10 +586,10 @@ Lib/test/test_string/test_templatelib.py @lysnikolaou @AA-Turner
586586
**/*sysconfig* @FFY00
587587

588588
# SQLite 3
589-
Doc/library/sqlite3.rst @berkerpeksag @erlend-aasland
590-
Lib/sqlite3/ @berkerpeksag @erlend-aasland
591-
Lib/test/test_sqlite3/ @berkerpeksag @erlend-aasland
592-
Modules/_sqlite/ @berkerpeksag @erlend-aasland
589+
Doc/library/sqlite3.rst @erlend-aasland
590+
Lib/sqlite3/ @erlend-aasland
591+
Lib/test/test_sqlite3/ @erlend-aasland
592+
Modules/_sqlite/ @erlend-aasland
593593

594594
# Subprocess
595595
Lib/subprocess.py @gpshead
@@ -622,9 +622,6 @@ Modules/_typesmodule.c @AA-Turner
622622
Lib/unittest/mock.py @cjw296
623623
Lib/test/test_unittest/testmock/ @cjw296
624624

625-
# Urllib
626-
**/*robotparser* @berkerpeksag
627-
628625
# Venv
629626
**/*venv* @vsajip @FFY00
630627

‎.github/workflows/mypy.yml‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ jobs:
6969
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7070
with:
7171
persist-credentials: false
72-
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
72+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
7373
with:
7474
python-version: "3.15"
75-
allow-prereleases: true
76-
cache: pip
77-
cache-dependency-path: Tools/requirements-dev.txt
78-
- run: pip install -r Tools/requirements-dev.txt
75+
activate-environment: true
76+
cache-dependency-glob: Tools/requirements-dev.txt
77+
- run: uv pip install -r Tools/requirements-dev.txt
7978
- run: python3 Misc/mypy/make_symlinks.py --symlink
80-
- run: mypy --config-file ${{ matrix.target }}/mypy.ini
79+
- run: mypy --num-workers 4 --config-file ${{ matrix.target }}/mypy.ini

‎.github/workflows/posix-deps-apt.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ apt-get -yq --no-install-recommends install \
2727
zlib1g-dev
2828

2929
# Workaround missing libmpdec-dev on ubuntu 24.04 by building mpdecimal
30-
# from source. ppa:ondrej/php (launchpad.net) are unreliable
30+
# from source. ppa:ondrej/php (launchpad.net) are unreliable
3131
# (https://status.canonical.com) so fetch the tarball directly
3232
# from the upstream host.
3333
# https://www.bytereef.org/mpdecimal/

‎Doc/c-api/sentinel.rst‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,20 @@ Sentinel objects
1414

1515
.. c:function:: int PySentinel_Check(PyObject *o)
1616
17-
Return true if *o* is a :class:`sentinel` object. The :class:`sentinel` type
18-
does not allow subclasses, so this check is exact.
17+
Return true if *o* is a :class:`sentinel` object or a subtype.
18+
The :class:`sentinel` type does not currently allow subclasses,
19+
so this check is exact.
20+
Future Python versions may choose to allow subtyping.
21+
This function always succeeds.
22+
23+
.. versionadded:: 3.15
24+
25+
.. c:function:: int PySentinel_CheckExact(PyObject *o)
26+
27+
Return true if *o* is a :class:`sentinel` object, but not a subtype.
28+
The :class:`sentinel` type does not currently allow subclasses.
29+
Future Python versions may choose to allow subtyping.
30+
This function always succeeds.
1931
2032
.. versionadded:: 3.15
2133

‎Doc/c-api/slots.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Definition slots
77

88
To define :ref:`module objects <moduleobjects>` and
99
:ref:`classes <creating-heap-types>` using the C API, you may use
10-
an array of *slots* -- essentally, key-value pairs that describe features
10+
an array of *slots* -- essentially, key-value pairs that describe features
1111
of the object to create.
1212
This decouples the data from the structures used at runtime, allowing CPython
13-
-- and other Python C API implementations -- to update the stuctures without
13+
-- and other Python C API implementations -- to update the structures without
1414
breaking backwards compatibility.
1515

1616
This section documents slots in general.

‎Doc/c-api/stable.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ versions of Python.
114114

115115
All functions in Stable ABI are present as functions in Python's shared
116116
library, not solely as macros.
117-
This makes them usable are usable from languages that don't use the C
117+
This makes them usable in languages that don't use the C
118118
preprocessor, including Python's :py:mod:`ctypes`.
119119

120120

‎Doc/c-api/synchronization.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ are not available.
238238
.. c:function:: void PyCriticalSection_BeginMutex(PyCriticalSection *c, PyMutex *m);
239239
void PyCriticalSection2_BeginMutex(PyCriticalSection2 *c, PyMutex *m1, PyMutex *m2);
240240
241-
.. (These need to be in a separate section without a Stable ABI anotation.)
241+
.. (These need to be in a separate section without a Stable ABI annotation.)
242242
243243
To be used only as in the macro expansions
244244
listed :ref:`earlier in this section <critical-section-macros>`.

‎Doc/c-api/unicode.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ APIs:
762762
The string must not have been “used” yet.
763763
See :c:func:`PyUnicode_New` for details.
764764
765-
Return the number of written character, or return ``-1`` and raise an
765+
Return the number of written characters, or return ``-1`` and raise an
766766
exception on error.
767767
768768
.. versionadded:: 3.3
@@ -1174,7 +1174,7 @@ These are the UTF-8 codec APIs:
11741174
.. versionadded:: 3.3
11751175
11761176
.. versionchanged:: 3.7
1177-
The return type is now ``const char *`` rather of ``char *``.
1177+
The return type is now ``const char *`` rather than ``char *``.
11781178
11791179
.. versionchanged:: 3.10
11801180
This function is a part of the :ref:`limited API <limited-c-api>`.
@@ -1196,7 +1196,7 @@ These are the UTF-8 codec APIs:
11961196
.. versionadded:: 3.3
11971197
11981198
.. versionchanged:: 3.7
1199-
The return type is now ``const char *`` rather of ``char *``.
1199+
The return type is now ``const char *`` rather than ``char *``.
12001200
12011201
12021202
UTF-32 Codecs

‎Doc/deprecations/pending-removal-in-3.16.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Pending removal in Python 3.16
9696

9797
* :mod:`sys`:
9898

99-
* The :func:`~sys._enablelegacywindowsfsencoding` function
99+
* The :func:`!_enablelegacywindowsfsencoding` function
100100
has been deprecated since Python 3.13.
101101
Use the :envvar:`PYTHONLEGACYWINDOWSFSENCODING` environment variable instead.
102102

@@ -108,5 +108,5 @@ Pending removal in Python 3.16
108108

109109
* :mod:`tarfile`:
110110

111-
* The undocumented and unused :attr:`!TarFile.tarfile` attribute
111+
* The undocumented and unused :attr:`!TarInfo.tarfile` attribute
112112
has been deprecated since Python 3.13.

‎Doc/library/array.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This module defines an object type which can compactly represent an array of
1212
basic values: characters, integers, floating-point numbers, complex numbers. Arrays are mutable :term:`sequence`
1313
types and behave very much like lists, except that the type of objects stored in
1414
them is constrained. The type is specified at object creation time by using a
15-
:dfn:`type code`, which is a single character. The following type codes are
15+
:dfn:`type code`. The following type codes are
1616
defined:
1717

1818
+-----------+--------------------+-------------------+-----------------------+-------+
@@ -91,7 +91,7 @@ Notes:
9191
.. seealso::
9292

9393
The :ref:`ctypes <ctypes-fundamental-data-types>` and
94-
:ref:`struct <format-characters>` modules,
94+
:ref:`struct <type-codes>` modules,
9595
as well as third-party modules like `numpy <https://numpy.org/doc/stable/reference/arrays.interface.html#object.__array_interface__>`__,
9696
use similar -- but slightly different -- type codes.
9797

0 commit comments

Comments
 (0)