Skip to content

Commit f1eb0c0

Browse files
committed
Python 3.15.0a3
1 parent 1cc7551 commit f1eb0c0

File tree

166 files changed

+2057
-668
lines changed

Some content is hidden

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

166 files changed

+2057
-668
lines changed

Doc/c-api/extension-modules.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ and must be named after the module name plus an extension listed in
2929
Extension export hook
3030
.....................
3131

32-
.. versionadded:: next
32+
.. versionadded:: 3.15
3333

3434
Support for the :samp:`PyModExport_{<name>}` export hook was added in Python
3535
3.15. The older way of defining modules is still available: consult either
@@ -191,7 +191,7 @@ the :c:data:`Py_mod_multiple_interpreters` slot.
191191
``PyInit`` function
192192
...................
193193

194-
.. deprecated:: next
194+
.. deprecated:: 3.15
195195

196196
This functionality is :term:`soft deprecated`.
197197
It will not get new features, but there are no plans to remove it.
@@ -272,7 +272,7 @@ For example, a module called ``spam`` would be defined like this::
272272
Legacy single-phase initialization
273273
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
274274
275-
.. deprecated:: next
275+
.. deprecated:: 3.15
276276
277277
Single-phase initialization is :term:`soft deprecated`.
278278
It is a legacy mechanism to initialize extension

Doc/c-api/module.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Modules created using the C API are typically defined using an
142142
array of :dfn:`slots`.
143143
The slots provide a "description" of how a module should be created.
144144
145-
.. versionchanged:: next
145+
.. versionchanged:: 3.15
146146
147147
Previously, a :c:type:`PyModuleDef` struct was necessary to define modules.
148148
The older way of defining modules is still available: consult either the
@@ -190,7 +190,7 @@ Metadata slots
190190
However, it is still recommended to include this slot for introspection
191191
and debugging purposes.
192192
193-
.. versionadded:: next
193+
.. versionadded:: 3.15
194194
195195
Use :c:member:`PyModuleDef.m_name` instead to support previous versions.
196196
@@ -201,7 +201,7 @@ Metadata slots
201201
202202
Usually it is set to a variable created with :c:macro:`PyDoc_STRVAR`.
203203
204-
.. versionadded:: next
204+
.. versionadded:: 3.15
205205
206206
Use :c:member:`PyModuleDef.m_doc` instead to support previous versions.
207207
@@ -332,7 +332,7 @@ Creation and initialization slots
332332
333333
.. versionadded:: 3.5
334334
335-
.. versionchanged:: next
335+
.. versionchanged:: 3.15
336336
337337
The *slots* argument may be a ``ModuleSpec``-like object, rather than
338338
a true :py:class:`~importlib.machinery.ModuleSpec` instance.
@@ -365,7 +365,7 @@ Creation and initialization slots
365365
366366
.. versionadded:: 3.5
367367
368-
.. versionchanged:: next
368+
.. versionchanged:: 3.15
369369
370370
Repeated ``Py_mod_exec`` slots are disallowed, except in
371371
:c:type:`PyModuleDef.m_slots`.
@@ -384,7 +384,7 @@ Creation and initialization slots
384384
The table must be statically allocated (or otherwise guaranteed to outlive
385385
the module object).
386386
387-
.. versionadded:: next
387+
.. versionadded:: 3.15
388388
389389
Use :c:member:`PyModuleDef.m_methods` instead to support previous versions.
390390
@@ -434,7 +434,7 @@ To retrieve the state from a given module, use the following functions:
434434
435435
On error, set *\*result* to -1, and return -1 with an exception set.
436436
437-
.. versionadded:: next
437+
.. versionadded:: 3.15
438438
439439
440440
@@ -459,7 +459,7 @@ defining the module state.
459459
460460
Use :c:func:`PyModule_GetStateSize` to retrieve the size of a given module.
461461
462-
.. versionadded:: next
462+
.. versionadded:: 3.15
463463
464464
Use :c:member:`PyModuleDef.m_size` instead to support previous versions.
465465
@@ -482,7 +482,7 @@ defining the module state.
482482
(:c:data:`Py_mod_state_size`) is greater than 0 and the module state
483483
(as returned by :c:func:`PyModule_GetState`) is ``NULL``.
484484
485-
.. versionadded:: next
485+
.. versionadded:: 3.15
486486
487487
Use :c:member:`PyModuleDef.m_size` instead to support previous versions.
488488
@@ -510,7 +510,7 @@ defining the module state.
510510
the cyclic garbage collector is not involved and
511511
the :c:macro:`Py_mod_state_free` function is called directly.
512512
513-
.. versionadded:: next
513+
.. versionadded:: 3.15
514514
515515
Use :c:member:`PyModuleDef.m_clear` instead to support previous versions.
516516
@@ -532,7 +532,7 @@ defining the module state.
532532
(:c:data:`Py_mod_state_size`) is greater than 0 and the module state
533533
(as returned by :c:func:`PyModule_GetState`) is ``NULL``.
534534
535-
.. versionadded:: next
535+
.. versionadded:: 3.15
536536
537537
Use :c:member:`PyModuleDef.m_free` instead to support previous versions.
538538
@@ -593,15 +593,15 @@ A module's token -- and the *your_token* value to use in the above code -- is:
593593
This means that :c:macro:`!Py_mod_token` cannot be used in
594594
:c:member:`PyModuleDef.m_slots`.
595595
596-
.. versionadded:: next
596+
.. versionadded:: 3.15
597597
598598
.. c:function:: int PyModule_GetToken(PyObject *module, void** result)
599599
600600
Set *\*result* to the module's token and return 0.
601601
602602
On error, set *\*result* to NULL, and return -1 with an exception set.
603603
604-
.. versionadded:: next
604+
.. versionadded:: 3.15
605605
606606
See also :c:func:`PyType_GetModuleByToken`.
607607
@@ -641,7 +641,7 @@ rather than from an extension's :ref:`export hook <extension-export-hook>`.
641641
:c:func:`!PyModule_FromSlotsAndSpec` call.
642642
In particular, it may be heap-allocated.
643643
644-
.. versionadded:: next
644+
.. versionadded:: 3.15
645645
646646
.. c:function:: int PyModule_Exec(PyObject *module)
647647
@@ -654,7 +654,7 @@ rather than from an extension's :ref:`export hook <extension-export-hook>`.
654654
:ref:`legacy single-phase initialization <single-phase-initialization>`,
655655
this function does nothing and returns 0.
656656
657-
.. versionadded:: next
657+
.. versionadded:: 3.15
658658
659659
660660

Doc/c-api/object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Object Protocol
111111
object type name: str
112112
object repr : 'abcdef'
113113
114-
.. versionadded:: next
114+
.. versionadded:: 3.15
115115
116116
117117
.. c:function:: int PyObject_HasAttrWithError(PyObject *o, PyObject *attr_name)

Doc/c-api/type.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ Type Objects
317317
and other places where a method's defining class cannot be passed using the
318318
:c:type:`PyCMethod` calling convention.
319319
320-
.. versionadded:: next
320+
.. versionadded:: 3.15
321321
322322
323323
.. c:function:: PyObject* PyType_GetModuleByDef(PyTypeObject *type, struct PyModuleDef *def)

Doc/library/argparse.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ behavior::
13701370
>>> parser.parse_args('--foo XXX'.split())
13711371
Namespace(bar='XXX')
13721372

1373-
.. versionchanged:: next
1373+
.. versionchanged:: 3.15
13741374
Single-dash long option now takes precedence over short options.
13751375

13761376

@@ -1473,7 +1473,7 @@ this API may be passed as the ``action`` parameter to
14731473

14741474
.. versionadded:: 3.9
14751475

1476-
.. versionchanged:: next
1476+
.. versionchanged:: 3.15
14771477
Added support for single-dash options.
14781478

14791479
Added support for alternate prefix_chars_.

Doc/library/gc.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The :mod:`gc` module provides the following functions:
118118

119119
.. versionadded:: 3.4
120120

121-
.. versionchanged:: next
121+
.. versionchanged:: 3.15
122122
Add ``duration`` and ``candidates``.
123123

124124

@@ -340,7 +340,7 @@ values but should not rebind them):
340340

341341
.. versionadded:: 3.3
342342

343-
.. versionchanged:: next
343+
.. versionchanged:: 3.15
344344
Add "duration" and "candidates".
345345

346346

Doc/library/importlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Functions
210210
:exc:`ModuleNotFoundError` is raised when the module being reloaded lacks
211211
a :class:`~importlib.machinery.ModuleSpec`.
212212

213-
.. versionchanged:: next
213+
.. versionchanged:: 3.15
214214
If *module* is a lazy module that has not yet been materialized (i.e.,
215215
loaded via :class:`importlib.util.LazyLoader` and not yet accessed),
216216
calling :func:`reload` is a no-op and returns the module unchanged.

Doc/library/readline.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Startup hooks
252252
function has been set. This function only exists if Python was compiled
253253
for a version of the library that supports it.
254254

255-
.. versionadded:: next
255+
.. versionadded:: 3.15
256256

257257

258258
.. _readline-completion:

Doc/library/socket.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ The AF_* and SOCK_* constants are now :class:`AddressFamily` and
482482
.. versionchanged:: 3.14
483483
Added support for ``TCP_QUICKACK`` on Windows platforms when available.
484484

485-
.. versionchanged:: next
485+
.. versionchanged:: 3.15
486486
``IPV6_HDRINCL`` was added.
487487

488488

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2640,7 +2640,7 @@ Notes on using *__slots__*:
26402640
of the iterator's values. However, the *__slots__* attribute will be an empty
26412641
iterator.
26422642

2643-
.. versionchanged:: next
2643+
.. versionchanged:: 3.15
26442644
Allowed defining the *__dict__* and *__weakref__* *__slots__* for any class.
26452645

26462646

0 commit comments

Comments
 (0)