Skip to content

Commit 02642a3

Browse files
generatedunixname1734921407115435facebook-github-bot
authored andcommitted
Import upstream CPython branch '3.14'
Summary: Python `3.14.0rc2+` (`3.14`) was **published** on 2025-08-15 10:15:30+00:00. # Commit Info Base: (`3.14.0rc1+`) - `7c0e6378c185313c7377e7e62658f85d0907c94f` (commit date: 2025-08-14 08:51:33+00:00) Imported: (`3.14.0rc2+`) - `3.14` (commit date: 2025-08-15 10:15:30+00:00) # Files added ``` Doc/howto/a-conceptual-overview-of-asyncio.rst Misc/NEWS.d/3.14.0rc2.rst ``` # Files removed ``` Misc/NEWS.d/next/Build/2025-08-13-12-10-12.gh-issue-132339.3Czz5y.rst Misc/NEWS.d/next/C_API/2025-08-13-13-41-04.gh-issue-137573.r6uwRf.rst Misc/NEWS.d/next/Core_and_Builtins/2025-07-24-17-30-58.gh-issue-136870.ncx82J.rst Misc/NEWS.d/next/Core_and_Builtins/2025-07-25-22-31-52.gh-issue-131338.zJDCMp.rst Misc/NEWS.d/next/Core_and_Builtins/2025-07-28-19-11-34.gh-issue-134291.IiB9Id.rst Misc/NEWS.d/next/Core_and_Builtins/2025-08-01-18-54-31.gh-issue-137288.FhE7ku.rst Misc/NEWS.d/next/Core_and_Builtins/2025-08-02-10-27-53.gh-issue-137308.at05p_.rst Misc/NEWS.d/next/Core_and_Builtins/2025-08-02-23-04-57.gh-issue-137314.wjEdzD.rst Misc/NEWS.d/next/Core_and_Builtins/2025-08-06-15-39-54.gh-issue-137400.xIw0zs.rst Misc/NEWS.d/next/Documentation/2025-07-01-23-00-58.gh-issue-136155.4siQQO.rst Misc/NEWS.d/next/Library/2025-07-20-16-56-55.gh-issue-135228.n_XIao.rst Misc/NEWS.d/next/Library/2025-07-23-00-35-29.gh-issue-130577.c7EITy.rst Misc/NEWS.d/next/Library/2025-07-24-00-38-07.gh-issue-137059.fr64oW.rst Misc/NEWS.d/next/Library/2025-07-25-09-21-56.gh-issue-130522.Crwq68.rst Misc/NEWS.d/next/Library/2025-07-29-21-18-31.gh-issue-137226.B_4lpu.rst Misc/NEWS.d/next/Library/2025-07-30-18-07-33.gh-issue-137257.XBtzf2.rst Misc/NEWS.d/next/Library/2025-07-31-10-31-56.gh-issue-137282.GOCwIC.rst Misc/NEWS.d/next/Library/2025-08-08-15-00-38.gh-issue-137426.lW-Rk2.rst Misc/NEWS.d/next/Windows/2025-07-27-02-16-53.gh-issue-137134.W0WpDF.rst Misc/NEWS.d/next/macOS/2025-07-27-02-17-40.gh-issue-137134.pjgITs.rst Misc/NEWS.d/next/macOS/2025-08-06-06-29-12.gh-issue-137450.JZypb7.rst ``` Reviewed By: itamaro Differential Revision: D80336045 fbshipit-source-id: fc8f0511ff8b077337f48b8d76ec92a8cf1024ef
1 parent d07508a commit 02642a3

35 files changed

Lines changed: 1369 additions & 201 deletions

Doc/howto/a-conceptual-overview-of-asyncio.rst

Lines changed: 606 additions & 0 deletions
Large diffs are not rendered by default.

Doc/howto/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _how-tos:
2+
13
***************
24
Python HOWTOs
35
***************
@@ -11,6 +13,7 @@ Python Library Reference.
1113
:maxdepth: 1
1214
:hidden:
1315

16+
a-conceptual-overview-of-asyncio.rst
1417
cporting.rst
1518
curses.rst
1619
descriptor.rst
@@ -38,6 +41,7 @@ Python Library Reference.
3841

3942
General:
4043

44+
* :ref:`a-conceptual-overview-of-asyncio`
4145
* :ref:`annotations-howto`
4246
* :ref:`argparse-tutorial`
4347
* :ref:`descriptorhowto`

Doc/library/array.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defined:
2424
+-----------+--------------------+-------------------+-----------------------+-------+
2525
| ``'u'`` | wchar_t | Unicode character | 2 | \(1) |
2626
+-----------+--------------------+-------------------+-----------------------+-------+
27-
| ``'w'`` | Py_UCS4 | Unicode character | 4 | |
27+
| ``'w'`` | Py_UCS4 | Unicode character | 4 | \(2) |
2828
+-----------+--------------------+-------------------+-----------------------+-------+
2929
| ``'h'`` | signed short | int | 2 | |
3030
+-----------+--------------------+-------------------+-----------------------+-------+
@@ -60,6 +60,9 @@ Notes:
6060
.. deprecated-removed:: 3.3 3.16
6161
Please migrate to ``'w'`` typecode.
6262

63+
(2)
64+
.. versionadded:: 3.13
65+
6366

6467
The actual representation of values is determined by the machine architecture
6568
(strictly speaking, by the C implementation). The actual size can be accessed

Doc/library/asyncio-future.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Future Functions
7575
Deprecation warning is emitted if *future* is not a Future-like object
7676
and *loop* is not specified and there is no running event loop.
7777

78+
.. _asyncio-future-obj:
7879

7980
Future Object
8081
=============

Doc/library/asyncio-task.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,6 +1193,7 @@ Introspection
11931193

11941194
.. versionadded:: 3.4
11951195

1196+
.. _asyncio-task-obj:
11961197

11971198
Task Object
11981199
===========

Doc/library/asyncio.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ database connection libraries, distributed task queues, etc.
2929
asyncio is often a perfect fit for IO-bound and high-level
3030
**structured** network code.
3131

32+
.. seealso::
33+
34+
:ref:`a-conceptual-overview-of-asyncio`
35+
Explanation of the fundamentals of asyncio.
36+
3237
asyncio provides a set of **high-level** APIs to:
3338

3439
* :ref:`run Python coroutines <coroutine>` concurrently and

Doc/library/os.path.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ the :mod:`glob` module.)
9494
Any iterable can now be passed, rather than just sequences.
9595

9696

97-
.. function:: commonprefix(list)
97+
.. function:: commonprefix(list, /)
9898

9999
Return the longest path prefix (taken character-by-character) that is a
100100
prefix of all paths in *list*. If *list* is empty, return the empty string
@@ -199,14 +199,14 @@ the :mod:`glob` module.)
199199
Accepts a :term:`path-like object`.
200200

201201

202-
.. function:: getatime(path)
202+
.. function:: getatime(path, /)
203203

204204
Return the time of last access of *path*. The return value is a floating-point number giving
205205
the number of seconds since the epoch (see the :mod:`time` module). Raise
206206
:exc:`OSError` if the file does not exist or is inaccessible.
207207

208208

209-
.. function:: getmtime(path)
209+
.. function:: getmtime(path, /)
210210

211211
Return the time of last modification of *path*. The return value is a floating-point number
212212
giving the number of seconds since the epoch (see the :mod:`time` module).
@@ -216,7 +216,7 @@ the :mod:`glob` module.)
216216
Accepts a :term:`path-like object`.
217217

218218

219-
.. function:: getctime(path)
219+
.. function:: getctime(path, /)
220220

221221
Return the system's ctime which, on some systems (like Unix) is the time of the
222222
last metadata change, and, on others (like Windows), is the creation time for *path*.
@@ -228,7 +228,7 @@ the :mod:`glob` module.)
228228
Accepts a :term:`path-like object`.
229229

230230

231-
.. function:: getsize(path)
231+
.. function:: getsize(path, /)
232232

233233
Return the size, in bytes, of *path*. Raise :exc:`OSError` if the file does
234234
not exist or is inaccessible.
@@ -351,7 +351,7 @@ the :mod:`glob` module.)
351351
.. versionadded:: 3.13
352352

353353

354-
.. function:: join(path, *paths)
354+
.. function:: join(path, /, *paths)
355355

356356
Join one or more path segments intelligently. The return value is the
357357
concatenation of *path* and all members of *\*paths*, with exactly one
@@ -402,7 +402,7 @@ the :mod:`glob` module.)
402402
Accepts a :term:`path-like object`.
403403

404404

405-
.. function:: realpath(path, *, strict=False)
405+
.. function:: realpath(path, /, *, strict=False)
406406

407407
Return the canonical path of the specified filename, eliminating any symbolic
408408
links encountered in the path (if they are supported by the operating
@@ -471,7 +471,7 @@ the :mod:`glob` module.)
471471
Accepts a :term:`path-like object`.
472472

473473

474-
.. function:: samefile(path1, path2)
474+
.. function:: samefile(path1, path2, /)
475475

476476
Return ``True`` if both pathname arguments refer to the same file or directory.
477477
This is determined by the device number and i-node number and raises an
@@ -498,7 +498,7 @@ the :mod:`glob` module.)
498498
Accepts a :term:`path-like object`.
499499

500500

501-
.. function:: samestat(stat1, stat2)
501+
.. function:: samestat(stat1, stat2, /)
502502

503503
Return ``True`` if the stat tuples *stat1* and *stat2* refer to the same file.
504504
These structures may have been returned by :func:`os.fstat`,

Doc/tutorial/appendix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ basic interpreter is supported on all platforms with minimal line
1515
control capabilities.
1616

1717
On Windows, or Unix-like systems with :mod:`curses` support,
18-
a new interactive shell is used by default.
18+
a new interactive shell is used by default since Python 3.13.
1919
This one supports color, multiline editing, history browsing, and
2020
paste mode. To disable color, see :ref:`using-on-controlling-color` for
2121
details. Function keys provide some additional functionality.

Doc/using/mac.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Current installers provide a
3939
`universal2 binary <https://en.wikipedia.org/wiki/Universal_binary>`_ build
4040
of Python which runs natively on all Macs (Apple Silicon and Intel) that are
4141
supported by a wide range of macOS versions,
42-
currently typically from at least **macOS 10.13 High Sierra** on.
42+
currently typically from at least **macOS 10.15 Catalina** on.
4343

4444
The downloaded file is a standard macOS installer package file (``.pkg``).
4545
File integrity information (checksum, size, sigstore signature, etc) for each file is included

Doc/whatsnew/3.14.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ A new flag has been added, :data:`~sys.flags.context_aware_warnings`. This
982982
flag defaults to true for the free-threaded build and false for the GIL-enabled
983983
build. If the flag is true then the :class:`warnings.catch_warnings` context
984984
manager uses a context variable for warning filters. This makes the context
985-
manager behave predicably when used with multiple threads or asynchronous
985+
manager behave predictably when used with multiple threads or asynchronous
986986
tasks.
987987

988988
A new flag has been added, :data:`~sys.flags.thread_inherit_context`. This flag
@@ -1648,7 +1648,7 @@ io
16481648
:exc:`BlockingIOError` if the operation cannot immediately return bytes.
16491649
(Contributed by Giovanni Siragusa in :gh:`109523`.)
16501650

1651-
* Add protocols :class:`io.Reader` and :class:`io.Writer` as a simpler
1651+
* Add protocols :class:`io.Reader` and :class:`io.Writer` as simpler
16521652
alternatives to the pseudo-protocols :class:`typing.IO`,
16531653
:class:`typing.TextIO`, and :class:`typing.BinaryIO`.
16541654
(Contributed by Sebastian Rittau in :gh:`127648`.)
@@ -2148,6 +2148,8 @@ typing
21482148

21492149
(Contributed by Jelle Zijlstra in :gh:`105499`.)
21502150

2151+
* :class:`typing.TypeAliasType` now supports star unpacking.
2152+
21512153

21522154
unicodedata
21532155
-----------
@@ -2731,7 +2733,6 @@ typing
27312733
* Remove :class:`!typing.ByteString`. It had previously raised a
27322734
:exc:`DeprecationWarning` since Python 3.12.
27332735

2734-
* :class:`typing.TypeAliasType` now supports star unpacking.
27352736

27362737
urllib
27372738
------

0 commit comments

Comments
 (0)