Skip to content

Commit b092705

Browse files
committed
Python 3.14.0b1
1 parent 5f01b00 commit b092705

File tree

237 files changed

+2243
-583
lines changed

Some content is hidden

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

237 files changed

+2243
-583
lines changed

Doc/c-api/arg.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ small to receive the value.
274274
Convert a Python integer to a C :c:expr:`unsigned long` without
275275
overflow checking.
276276

277-
.. versionchanged:: next
277+
.. versionchanged:: 3.14
278278
Use :meth:`~object.__index__` if available.
279279

280280
``L`` (:class:`int`) [long long]
@@ -284,7 +284,7 @@ small to receive the value.
284284
Convert a Python integer to a C :c:expr:`unsigned long long`
285285
without overflow checking.
286286

287-
.. versionchanged:: next
287+
.. versionchanged:: 3.14
288288
Use :meth:`~object.__index__` if available.
289289

290290
``n`` (:class:`int`) [:c:type:`Py_ssize_t`]
@@ -380,10 +380,10 @@ Other objects
380380
The *converter* for the ``O&`` format unit in *items* must not store
381381
a borrowed buffer or a borrowed reference.
382382

383-
.. versionchanged:: next
383+
.. versionchanged:: 3.14
384384
:class:`str` and :class:`bytearray` objects no longer accepted as a sequence.
385385

386-
.. deprecated:: next
386+
.. deprecated:: 3.14
387387
Non-tuple sequences are deprecated if *items* contains format units
388388
which store a borrowed buffer or a borrowed reference.
389389

@@ -396,7 +396,7 @@ Other objects
396396
If the argument is not ``None``, it is parsed according to the specified
397397
format unit.
398398

399-
.. versionadded:: next
399+
.. versionadded:: 3.14
400400

401401
A few other characters have a meaning in a format string. These may not occur
402402
inside nested parentheses. They are:

Doc/c-api/init_config.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ PyConfig
14861486
14871487
Default: ``0``.
14881488
1489-
.. versionchanged:: next
1489+
.. versionchanged:: 3.14
14901490
14911491
Added support for ``import_time = 2``
14921492

Doc/howto/logging-cookbook.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ which, when run, will produce:
626626
of each message with the handler's level, and only passes a message to a
627627
handler if it's appropriate to do so.
628628

629-
.. versionchanged:: next
629+
.. versionchanged:: 3.14
630630
The :class:`QueueListener` can be started (and stopped) via the
631631
:keyword:`with` statement. For example:
632632

Doc/library/argparse.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ keyword argument::
641641
>>> parser = argparse.ArgumentParser(description='Process some integers.')
642642
>>> parser.color = True
643643

644-
.. versionadded:: next
644+
.. versionadded:: 3.14
645645

646646

647647
The add_argument() method

Doc/library/ast.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -2577,21 +2577,21 @@ The following options are accepted:
25772577
Python version in the format 3.x (for example, 3.10). Defaults to the
25782578
current version of the interpreter.
25792579

2580-
.. versionadded:: next
2580+
.. versionadded:: 3.14
25812581

25822582
.. option:: -O <level>
25832583
--optimize <level>
25842584

25852585
Optimization level for parser. Defaults to no optimization.
25862586

2587-
.. versionadded:: next
2587+
.. versionadded:: 3.14
25882588

25892589
.. option:: --show-empty
25902590

25912591
Show empty lists and fields that are ``None``. Defaults to not showing empty
25922592
objects.
25932593

2594-
.. versionadded:: next
2594+
.. versionadded:: 3.14
25952595

25962596

25972597
If :file:`infile` is specified its contents are parsed to AST and dumped

Doc/library/asyncio-eventloop.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ Creating Futures and Tasks
388388
.. versionchanged:: 3.11
389389
Added the *context* parameter.
390390

391-
.. versionchanged:: next
391+
.. versionchanged:: 3.14
392392
Added the *eager_start* parameter.
393393

394394
.. method:: loop.set_task_factory(factory)

Doc/library/audit_events.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ public API of CPython:
4848
| ctypes.PyObj_FromPtr | ``obj`` |
4949
+----------------------------+-------------------------------------------+
5050

51-
.. versionadded:: next
51+
.. versionadded:: 3.14
5252
The ``_posixsubprocess.fork_exec`` internal audit event.

Doc/library/codecs.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ wider range of codecs when working with binary files:
208208
.. versionchanged:: 3.11
209209
The ``'U'`` mode has been removed.
210210

211-
.. deprecated:: next
211+
.. deprecated:: 3.14
212212

213213
:func:`codecs.open` has been superseded by :func:`open`.
214214

Doc/library/ctypes.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,7 @@ Data types
23582358
:func:`POINTER` for corresponding ctypes data type. If a pointer type
23592359
was not yet created, the attribute is missing.
23602360

2361-
.. versionadded:: next
2361+
.. versionadded:: 3.14
23622362

23632363
Common instance variables of ctypes data types:
23642364

@@ -2756,7 +2756,7 @@ fields, or any other data types containing pointer type fields.
27562756

27572757
This is only implemented for the MSVC-compatible memory layout.
27582758

2759-
.. deprecated-removed:: next 3.19
2759+
.. deprecated-removed:: 3.14 3.19
27602760

27612761
For historical reasons, if :attr:`!_pack_` is non-zero,
27622762
the MSVC-compatible layout will be used by default.
@@ -2799,7 +2799,7 @@ fields, or any other data types containing pointer type fields.
27992799
:attr:`!_layout_` must already be defined when
28002800
:attr:`~Structure._fields_` is assigned, otherwise it will have no effect.
28012801

2802-
.. versionadded:: next
2802+
.. versionadded:: 3.14
28032803

28042804
.. attribute:: _anonymous_
28052805

Doc/library/curses.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The module :mod:`curses` defines the following functions:
8080

8181
* Change the definition of the color-pair ``0`` to ``(fg, bg)``.
8282

83-
.. versionadded:: next
83+
.. versionadded:: 3.14
8484

8585

8686
.. function:: baudrate()

Doc/library/decimal.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ function to temporarily change the active context.
10371037
IEEE interchange formats. The argument must be a multiple of 32 and less
10381038
than :const:`IEEE_CONTEXT_MAX_BITS`.
10391039

1040-
.. versionadded:: next
1040+
.. versionadded:: 3.14
10411041

10421042
New contexts can also be created using the :class:`Context` constructor
10431043
described below. In addition, the module provides three pre-made contexts:

Doc/library/exceptions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ The following exceptions are the exceptions that are usually raised.
436436
.. versionadded:: 3.13
437437
Previously, a plain :exc:`RuntimeError` was raised.
438438

439-
.. versionchanged:: next
439+
.. versionchanged:: 3.14
440440

441441
:meth:`threading.Thread.join` can now raise this exception.
442442

Doc/library/faulthandler.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Dumping the traceback
6969
Dumping the C stack
7070
-------------------
7171

72-
.. versionadded:: next
72+
.. versionadded:: 3.14
7373

7474
.. function:: dump_c_stack(file=sys.stderr)
7575

@@ -130,7 +130,7 @@ Fault handler state
130130
Only the current thread is dumped if the :term:`GIL` is disabled to
131131
prevent the risk of data races.
132132

133-
.. versionchanged:: next
133+
.. versionchanged:: 3.14
134134
The dump now displays the C stack trace if *c_stack* is true.
135135

136136
.. function:: disable()

Doc/library/fcntl.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ descriptor.
7979
On macOS and NetBSD, the :mod:`!fcntl` module exposes the ``F_GETNOSIGPIPE``
8080
and ``F_SETNOSIGPIPE`` constant.
8181

82-
.. versionchanged:: next
82+
.. versionchanged:: 3.14
8383
On Linux >= 6.1, the :mod:`!fcntl` module exposes the ``F_DUPFD_QUERY``
8484
to query a file descriptor pointing to the same file.
8585

@@ -121,7 +121,7 @@ The module defines the following functions:
121121

122122
.. audit-event:: fcntl.fcntl fd,cmd,arg fcntl.fcntl
123123

124-
.. versionchanged:: next
124+
.. versionchanged:: 3.14
125125
Add support of arbitrary :term:`bytes-like objects <bytes-like object>`,
126126
not only :class:`bytes`.
127127

@@ -181,7 +181,7 @@ The module defines the following functions:
181181

182182
.. audit-event:: fcntl.ioctl fd,request,arg fcntl.ioctl
183183

184-
.. versionchanged:: next
184+
.. versionchanged:: 3.14
185185
The GIL is always released during a system call.
186186
System calls failing with EINTR are automatically retried.
187187

Doc/library/getpass.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The :mod:`getpass` module provides two functions:
3939
If you call getpass from within IDLE, the input may be done in the
4040
terminal you launched IDLE from rather than the idle window itself.
4141

42-
.. versionchanged:: next
42+
.. versionchanged:: 3.14
4343
Added the *echo_char* parameter for keyboard feedback.
4444

4545
.. exception:: GetPassWarning

Doc/library/hashlib.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ a file or file-like object.
302302

303303
.. versionadded:: 3.11
304304

305-
.. versionchanged:: next
305+
.. versionchanged:: 3.14
306306
Now raises a :exc:`BlockingIOError` if the file is opened in blocking
307307
mode. Previously, spurious null bytes were added to the digest.
308308

Doc/library/heapq.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ For max-heaps, the following functions are provided:
105105

106106
Transform list *x* into a max-heap, in-place, in linear time.
107107

108-
.. versionadded:: next
108+
.. versionadded:: 3.14
109109

110110

111111
.. function:: heappush_max(heap, item)
112112

113113
Push the value *item* onto the max-heap *heap*, maintaining the max-heap
114114
invariant.
115115

116-
.. versionadded:: next
116+
.. versionadded:: 3.14
117117

118118

119119
.. function:: heappop_max(heap)
@@ -122,7 +122,7 @@ For max-heaps, the following functions are provided:
122122
max-heap invariant. If the max-heap is empty, :exc:`IndexError` is raised.
123123
To access the largest item without popping it, use ``maxheap[0]``.
124124

125-
.. versionadded:: next
125+
.. versionadded:: 3.14
126126

127127

128128
.. function:: heappushpop_max(heap, item)
@@ -132,7 +132,7 @@ For max-heaps, the following functions are provided:
132132
The combined action runs more efficiently than :func:`heappush_max`
133133
followed by a separate call to :func:`heappop_max`.
134134

135-
.. versionadded:: next
135+
.. versionadded:: 3.14
136136

137137

138138
.. function:: heapreplace_max(heap, item)
@@ -145,7 +145,7 @@ For max-heaps, the following functions are provided:
145145
The value returned may be smaller than the *item* added. Refer to the
146146
analogous function :func:`heapreplace` for detailed usage notes.
147147

148-
.. versionadded:: next
148+
.. versionadded:: 3.14
149149

150150

151151
The module also offers three general purpose functions based on heaps.

Doc/library/logging.handlers.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ possible, while any potentially slow operations (such as sending an email via
11481148
.. versionchanged:: 3.5
11491149
The ``respect_handler_level`` argument was added.
11501150

1151-
.. versionchanged:: next
1151+
.. versionchanged:: 3.14
11521152
:class:`QueueListener` can now be used as a context manager via
11531153
:keyword:`with`. When entering the context, the listener is started. When
11541154
exiting the context, the listener is stopped.
@@ -1186,7 +1186,7 @@ possible, while any potentially slow operations (such as sending an email via
11861186
This starts up a background thread to monitor the queue for
11871187
LogRecords to process.
11881188

1189-
.. versionchanged:: next
1189+
.. versionchanged:: 3.14
11901190
Raises :exc:`RuntimeError` if called and the listener is already
11911191
running.
11921192

Doc/library/multiprocessing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ The :mod:`multiprocessing` package mostly replicates the API of the
687687
:attr:`exitcode` you may simply catch :exc:`KeyboardInterrupt` and call
688688
``exit(your_code)``.
689689

690-
.. versionadded:: next
690+
.. versionadded:: 3.14
691691

692692
.. method:: terminate()
693693

Doc/library/pathlib.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ conforming to :rfc:`8089`.
871871

872872
.. versionadded:: 3.13
873873

874-
.. versionchanged:: next
874+
.. versionchanged:: 3.14
875875
The URL authority is discarded if it matches the local hostname.
876876
Otherwise, if the authority isn't empty or ``localhost``, then on
877877
Windows a UNC path is returned (as before), and on other platforms a

Doc/library/re.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ character ``'$'``.
667667
``\z``
668668
Matches only at the end of the string.
669669

670-
.. versionadded:: next
670+
.. versionadded:: 3.14
671671

672672
``\Z``
673673
The same as ``\z``. For compatibility with old Python versions.

Doc/library/readline.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The following functions relate to the init file and user configuration:
7676
if given, and :code:`"<readline_init_file>"` otherwise, regardless of
7777
which file the library resolves.
7878

79-
.. versionchanged:: next
79+
.. versionchanged:: 3.14
8080
The auditing event was added.
8181

8282

@@ -119,7 +119,7 @@ The following functions operate on a history file:
119119
and raises an :ref:`auditing event <auditing>` ``open`` with the file
120120
name if given and :code:`"~/.history"` otherwise.
121121

122-
.. versionchanged:: next
122+
.. versionchanged:: 3.14
123123
The auditing event was added.
124124

125125

@@ -131,7 +131,7 @@ The following functions operate on a history file:
131131
:ref:`auditing event <auditing>` ``open`` with the file name if given and
132132
:code:`"~/.history"` otherwise.
133133

134-
.. versionchanged:: next
134+
.. versionchanged:: 3.14
135135
The auditing event was added.
136136

137137

@@ -146,7 +146,7 @@ The following functions operate on a history file:
146146

147147
.. versionadded:: 3.5
148148

149-
.. versionchanged:: next
149+
.. versionchanged:: 3.14
150150
The auditing event was added.
151151

152152

0 commit comments

Comments
 (0)