Skip to content

Commit f67555f

Browse files
committed
Catch up with main
2 parents fcb9d07 + 27494dd commit f67555f

File tree

211 files changed

+4758
-2099
lines changed

Some content is hidden

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

211 files changed

+4758
-2099
lines changed

.github/CODEOWNERS

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,14 @@ Doc/library/site.rst @FFY00
9696
Lib/test/test_except*.py @iritkatriel
9797
Objects/exceptions.c @iritkatriel
9898

99-
# Hashing
100-
**/*hashlib* @gpshead @tiran
99+
# Hashing & cryptographic primitives
100+
**/*hashlib* @gpshead @tiran @picnixz
101101
**/*pyhash* @gpshead @tiran
102-
**/sha* @gpshead @tiran
103-
Modules/md5* @gpshead @tiran
104-
**/*blake* @gpshead @tiran
102+
**/sha* @gpshead @tiran @picnixz
103+
Modules/md5* @gpshead @tiran @picnixz
104+
**/*blake* @gpshead @tiran @picnixz
105105
Modules/_hacl/** @gpshead
106+
**/*hmac* @gpshead @picnixz
106107

107108
# logging
108109
**/*logging* @vsajip

.github/workflows/reusable-change-detection.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,22 @@ jobs:
8383
# into the PR branch anyway.
8484
#
8585
# https://github.com/python/core-workflow/issues/373
86-
git diff --name-only "origin/$GITHUB_BASE_REF.." | grep -qvE '(\.rst$|^Doc|^Misc|^\.pre-commit-config\.yaml$|\.ruff\.toml$|\.md$|mypy\.ini$)' && echo "run-tests=true" >> "$GITHUB_OUTPUT" || true
86+
grep_ignore_args=(
87+
# file extensions
88+
-e '\.md$'
89+
-e '\.rst$'
90+
# top-level folders
91+
-e '^Doc/'
92+
-e '^Misc/'
93+
# configuration files
94+
-e '^\.github/CODEOWNERS$'
95+
-e '^\.pre-commit-config\.yaml$'
96+
-e '\.ruff\.toml$'
97+
-e 'mypy\.ini$'
98+
)
99+
git diff --name-only "origin/$GITHUB_BASE_REF.." \
100+
| grep -qvE "${grep_ignore_args[@]}" \
101+
&& echo "run-tests=true" >> "$GITHUB_OUTPUT" || true
87102
fi
88103
89104
# Check if we should run hypothesis tests

Doc/c-api/sys.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Operating System Utilities
234234
235235
The caller must hold the GIL.
236236
237-
.. versionadded:: next
237+
.. versionadded:: 3.14
238238
239239
240240
.. c:function:: int Py_fclose(FILE *file)
@@ -246,7 +246,7 @@ Operating System Utilities
246246
In either case, any further access (including another call to
247247
:c:func:`Py_fclose`) to the stream results in undefined behavior.
248248
249-
.. versionadded:: next
249+
.. versionadded:: 3.14
250250
251251
252252
.. _systemfunctions:

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ Pending removal in Python 3.16
5757
In the rare case that you need the bitwise inversion of
5858
the underlying integer, convert to ``int`` explicitly (``~int(x)``).
5959

60+
* :mod:`functools`:
61+
62+
* Calling the Python implementation of :func:`functools.reduce` with *function*
63+
or *sequence* as keyword arguments has been deprecated since Python 3.14.
64+
6065
* :mod:`shutil`:
6166

6267
* The :class:`!ExecError` exception
@@ -79,8 +84,3 @@ Pending removal in Python 3.16
7984

8085
* The undocumented and unused :attr:`!TarFile.tarfile` attribute
8186
has been deprecated since Python 3.13.
82-
83-
* :mod:`functools`:
84-
85-
* Calling the Python implementation of :func:`functools.reduce` with *function*
86-
or *sequence* as keyword arguments has been deprecated since Python 3.14.

Doc/library/asyncio-eventloop.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ an event loop:
7373

7474
Set *loop* as the current event loop for the current OS thread.
7575

76-
.. deprecated:: next
76+
.. deprecated:: 3.14
7777
The :func:`set_event_loop` function is deprecated and will be removed
7878
in Python 3.16.
7979

Doc/library/asyncio-policy.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ for the current process:
4848

4949
Return the current process-wide policy.
5050

51-
.. deprecated:: next
51+
.. deprecated:: 3.14
5252
The :func:`get_event_loop_policy` function is deprecated and
5353
will be removed in Python 3.16.
5454

@@ -58,7 +58,7 @@ for the current process:
5858

5959
If *policy* is set to ``None``, the default policy is restored.
6060

61-
.. deprecated:: next
61+
.. deprecated:: 3.14
6262
The :func:`set_event_loop_policy` function is deprecated and
6363
will be removed in Python 3.16.
6464

@@ -95,7 +95,7 @@ The abstract event loop policy base class is defined as follows:
9595

9696
This method should never return ``None``.
9797

98-
.. deprecated:: next
98+
.. deprecated:: 3.14
9999
The :class:`AbstractEventLoopPolicy` class is deprecated and
100100
will be removed in Python 3.16.
101101

@@ -121,7 +121,7 @@ asyncio ships with the following built-in policies:
121121
The :meth:`get_event_loop` method of the default asyncio policy now
122122
raises a :exc:`RuntimeError` if there is no set event loop.
123123

124-
.. deprecated:: next
124+
.. deprecated:: 3.14
125125
The :class:`DefaultEventLoopPolicy` class is deprecated and
126126
will be removed in Python 3.16.
127127

@@ -133,7 +133,7 @@ asyncio ships with the following built-in policies:
133133

134134
.. availability:: Windows.
135135

136-
.. deprecated:: next
136+
.. deprecated:: 3.14
137137
The :class:`WindowsSelectorEventLoopPolicy` class is deprecated and
138138
will be removed in Python 3.16.
139139

@@ -145,7 +145,7 @@ asyncio ships with the following built-in policies:
145145

146146
.. availability:: Windows.
147147

148-
.. deprecated:: next
148+
.. deprecated:: 3.14
149149
The :class:`WindowsProactorEventLoopPolicy` class is deprecated and
150150
will be removed in Python 3.16.
151151

Doc/library/calendar.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
173173
on the first weekday as specified in the constructor or set by the
174174
:meth:`setfirstweekday` method.
175175

176-
.. versionchanged:: next
176+
.. versionchanged:: 3.14
177177
If *highlight_day* is given, this date is highlighted in color.
178178
This can be :ref:`controlled using environment variables
179179
<using-on-controlling-color>`.
@@ -201,7 +201,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
201201
on the first weekday as specified in the constructor or set by the
202202
:meth:`setfirstweekday` method.
203203

204-
.. versionchanged:: next
204+
.. versionchanged:: 3.14
205205
If *highlight_day* is given, this date is highlighted in color.
206206
This can be :ref:`controlled using environment variables
207207
<using-on-controlling-color>`.
@@ -229,7 +229,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
229229
:meth:`setfirstweekday` method. The earliest year for which a calendar
230230
can be generated is platform-dependent.
231231

232-
.. versionchanged:: next
232+
.. versionchanged:: 3.14
233233
If *highlight_day* is given, this date is highlighted in color.
234234
This can be :ref:`controlled using environment variables
235235
<using-on-controlling-color>`.
@@ -727,7 +727,7 @@ The following options are accepted:
727727
The number of months printed per row.
728728
Defaults to 3.
729729

730-
.. versionchanged:: next
730+
.. versionchanged:: 3.14
731731
By default, today's date is highlighted in color and can be
732732
:ref:`controlled using environment variables <using-on-controlling-color>`.
733733

Doc/library/ctypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2233,7 +2233,7 @@ Utility functions
22332233

22342234
.. audit-event:: ctypes.memoryview_at address,size,readonly
22352235

2236-
.. versionadded:: next
2236+
.. versionadded:: 3.14
22372237

22382238

22392239
.. _ctypes-data-types:

Doc/library/faulthandler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Fault handler state
9191
The dump now mentions if a garbage collector collection is running
9292
if *all_threads* is true.
9393

94-
.. versionchanged:: next
94+
.. versionchanged:: 3.14
9595
Only the current thread is dumped if the :term:`GIL` is disabled to
9696
prevent the risk of data races.
9797

Doc/library/importlib.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,15 @@ ABC hierarchy::
380380

381381
.. class:: ResourceLoader
382382

383+
*Superseded by TraversableResources*
384+
383385
An abstract base class for a :term:`loader` which implements the optional
384386
:pep:`302` protocol for loading arbitrary resources from the storage
385387
back-end.
386388

387389
.. deprecated:: 3.7
388390
This ABC is deprecated in favour of supporting resource loading
389-
through :class:`importlib.resources.abc.ResourceReader`.
391+
through :class:`importlib.resources.abc.TraversableResources`.
390392

391393
.. abstractmethod:: get_data(path)
392394

Doc/library/os.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5424,7 +5424,7 @@ operating system.
54245424

54255425
Scheduling policy for tasks with deadline constraints.
54265426

5427-
.. versionadded:: next
5427+
.. versionadded:: 3.14
54285428

54295429
.. data:: SCHED_IDLE
54305430

@@ -5434,7 +5434,7 @@ operating system.
54345434

54355435
Alias for :data:`SCHED_OTHER`.
54365436

5437-
.. versionadded:: next
5437+
.. versionadded:: 3.14
54385438

54395439
.. data:: SCHED_SPORADIC
54405440

Doc/library/pyexpat.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ The ``errors`` module has the following attributes:
945945

946946
The parser was tried to be stopped or suspended before it started.
947947

948-
.. versionadded:: next
948+
.. versionadded:: 3.14
949949

950950

951951
.. rubric:: Footnotes

Doc/library/re.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ character ``'$'``.
572572
Word boundaries are determined by the current locale
573573
if the :py:const:`~re.LOCALE` flag is used.
574574

575-
.. versionchanged:: next
575+
.. versionchanged:: 3.14
576576
``\B`` now matches empty input string.
577577

578578
.. index:: single: \d; in regular expressions

Doc/library/socket.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ Constants
678678

679679
Constant to enable duplicate address and port bindings with load balancing.
680680

681-
.. versionadded:: next
681+
.. versionadded:: 3.14
682682

683683
.. availability:: FreeBSD >= 12.0
684684

Doc/library/ssl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ Constants
938938

939939
Whether the OpenSSL library has built-in support for TLS-PHA.
940940

941-
.. versionadded:: next
941+
.. versionadded:: 3.14
942942

943943
.. data:: CHANNEL_BINDING_TYPES
944944

Doc/library/string.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,18 @@ The constants defined in this module are:
5959
String of ASCII characters which are considered punctuation characters
6060
in the ``C`` locale: ``!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~``.
6161

62+
6263
.. data:: printable
6364

64-
String of ASCII characters which are considered printable. This is a
65-
combination of :const:`digits`, :const:`ascii_letters`, :const:`punctuation`,
66-
and :const:`whitespace`.
65+
String of ASCII characters which are considered printable by Python.
66+
This is a combination of :const:`digits`, :const:`ascii_letters`,
67+
:const:`punctuation`, and :const:`whitespace`.
68+
69+
.. note::
70+
71+
By design, :meth:`string.printable.isprintable() <str.isprintable>`
72+
returns :const:`False`. In particular, ``string.printable`` is not
73+
printable in the POSIX sense (see :manpage:`LC_CTYPE <locale(5)>`).
6774

6875

6976
.. data:: whitespace

Doc/library/sys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
This module provides access to some variables used or maintained by the
1010
interpreter and to functions that interact strongly with the interpreter. It is
11-
always available.
11+
always available. Unless explicitly noted otherwise, all variables are read-only.
1212

1313

1414
.. data:: abiflags

Doc/library/threading.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,13 @@ since it is impossible to detect the termination of alien threads.
380380
This method will raise a :exc:`RuntimeError` if called more than once
381381
on the same thread object.
382382

383+
If supported, set the operating system thread name to
384+
:attr:`threading.Thread.name`. The name can be truncated depending on the
385+
operating system thread name limits.
386+
387+
.. versionchanged:: 3.14
388+
Set the operating system thread name.
389+
383390
.. method:: run()
384391

385392
Method representing the thread's activity.
@@ -443,9 +450,6 @@ since it is impossible to detect the termination of alien threads.
443450
running thread is renamed. (Setting the *name* attribute of a
444451
different thread only updates the Python Thread object.)
445452

446-
.. versionchanged:: 3.14
447-
Set the operating system thread name.
448-
449453
.. method:: getName()
450454
setName()
451455

Doc/library/turtle.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -993,8 +993,8 @@ Settings for measurement
993993
>>> turtle.heading()
994994
90.0
995995

996-
Change angle measurement unit to grad (also known as gon,
997-
grade, or gradian and equals 1/100-th of the right angle.)
996+
>>> # Change angle measurement unit to grad (also known as gon,
997+
>>> # grade, or gradian and equals 1/100-th of the right angle.)
998998
>>> turtle.degrees(400.0)
999999
>>> turtle.heading()
10001000
100.0
@@ -2235,7 +2235,7 @@ Settings and special methods
22352235
Add a turtle shape to TurtleScreen's shapelist. Only thusly registered
22362236
shapes can be used by issuing the command ``shape(shapename)``.
22372237

2238-
.. versionchanged:: next
2238+
.. versionchanged:: 3.14
22392239
Added support for PNG, PGM, and PPM image formats.
22402240
Both a shape name and an image file name can be specified.
22412241

0 commit comments

Comments
 (0)