Skip to content

Commit f26daa9

Browse files
committed
Python 3.14.0a4
1 parent ff3e145 commit f26daa9

File tree

96 files changed

+880
-230
lines changed

Some content is hidden

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

96 files changed

+880
-230
lines changed

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/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/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/turtle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Doc/library/unittest.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ Test cases
974974
class or a tuple of classes, as supported by :func:`issubclass`).
975975
To check for the exact type, use :func:`assertIs(cls, superclass) <assertIs>`.
976976

977-
.. versionadded:: next
977+
.. versionadded:: 3.14
978978

979979

980980
It is also possible to check the production of exceptions, warnings, and
@@ -1319,7 +1319,7 @@ Test cases
13191319
with a *prefix*.
13201320
*prefix* can also be a tuple of strings to try.
13211321

1322-
.. versionadded:: next
1322+
.. versionadded:: 3.14
13231323

13241324

13251325
.. method:: assertEndsWith(s, suffix, msg=None)
@@ -1329,15 +1329,15 @@ Test cases
13291329
with a *suffix*.
13301330
*suffix* can also be a tuple of strings to try.
13311331

1332-
.. versionadded:: next
1332+
.. versionadded:: 3.14
13331333

13341334

13351335
.. method:: assertHasAttr(obj, name, msg=None)
13361336
.. method:: assertNotHasAttr(obj, name, msg=None)
13371337

13381338
Test that the object *obj* has (or has not) an attribute *name*.
13391339

1340-
.. versionadded:: next
1340+
.. versionadded:: 3.14
13411341

13421342

13431343
.. _type-specific-methods:

Doc/using/configure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Features and minimum versions required to build CPython:
5858
.. versionchanged:: 3.13
5959
Autoconf 2.71, aclocal 1.16.5 and SQLite 3.15.2 are now required.
6060

61-
.. versionchanged:: next
61+
.. versionchanged:: 3.14
6262
Autoconf 2.72 is now required.
6363

6464
See also :pep:`7` "Style Guide for C Code" and :pep:`11` "CPython platform

Include/patchlevel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
#define PY_MINOR_VERSION 14
2222
#define PY_MICRO_VERSION 0
2323
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
24-
#define PY_RELEASE_SERIAL 3
24+
#define PY_RELEASE_SERIAL 4
2525

2626
/* Version as a string */
27-
#define PY_VERSION "3.14.0a3+"
27+
#define PY_VERSION "3.14.0a4"
2828
/*--end constants--*/
2929

3030

Lib/pydoc_data/topics.py

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Tue Dec 17 11:49:52 2024
2+
# Autogenerated by Sphinx on Tue Jan 14 13:41:56 2025
33
# as part of the release process.
44
topics = {'assert': 'The "assert" statement\n'
55
'**********************\n'
@@ -2822,15 +2822,18 @@
28222822
' enter = type(manager).__enter__\n'
28232823
' exit = type(manager).__exit__\n'
28242824
' value = enter(manager)\n'
2825+
' hit_except = False\n'
28252826
'\n'
28262827
' try:\n'
28272828
' TARGET = value\n'
28282829
' SUITE\n'
28292830
' except:\n'
2831+
' hit_except = True\n'
28302832
' if not exit(manager, *sys.exc_info()):\n'
28312833
' raise\n'
2832-
' else:\n'
2833-
' exit(manager, None, None, None)\n'
2834+
' finally:\n'
2835+
' if not hit_except:\n'
2836+
' exit(manager, None, None, None)\n'
28342837
'\n'
28352838
'With more than one item, the context managers are processed as '
28362839
'if\n'
@@ -5286,15 +5289,16 @@
52865289
'\n'
52875290
' Added in version 3.14: The *commands* argument.\n'
52885291
'\n'
5289-
'pdb.post_mortem(traceback=None)\n'
5292+
'pdb.post_mortem(t=None)\n'
52905293
'\n'
5291-
' Enter post-mortem debugging of the given *traceback* object. '
5292-
'If no\n'
5293-
' *traceback* is given, it uses the one of the exception that '
5294-
'is\n'
5295-
' currently being handled (an exception must be being handled '
5296-
'if the\n'
5297-
' default is to be used).\n'
5294+
' Enter post-mortem debugging of the given exception or '
5295+
'traceback\n'
5296+
' object. If no value is given, it uses the exception that is\n'
5297+
' currently being handled, or raises "ValueError" if there '
5298+
'isn’t one.\n'
5299+
'\n'
5300+
' Changed in version 3.13: Support for exception objects was '
5301+
'added.\n'
52985302
'\n'
52995303
'pdb.pm()\n'
53005304
'\n'
@@ -17403,15 +17407,18 @@
1740317407
' enter = type(manager).__enter__\n'
1740417408
' exit = type(manager).__exit__\n'
1740517409
' value = enter(manager)\n'
17410+
' hit_except = False\n'
1740617411
'\n'
1740717412
' try:\n'
1740817413
' TARGET = value\n'
1740917414
' SUITE\n'
1741017415
' except:\n'
17416+
' hit_except = True\n'
1741117417
' if not exit(manager, *sys.exc_info()):\n'
1741217418
' raise\n'
17413-
' else:\n'
17414-
' exit(manager, None, None, None)\n'
17419+
' finally:\n'
17420+
' if not hit_except:\n'
17421+
' exit(manager, None, None, None)\n'
1741517422
'\n'
1741617423
'With more than one item, the context managers are processed as if\n'
1741717424
'multiple "with" statements were nested:\n'

0 commit comments

Comments
 (0)