Skip to content

Commit e476061

Browse files
authored
Merge branch 'main' into branch-unique-reference-tracking
2 parents 100eeb5 + ce1abaf commit e476061

File tree

269 files changed

+3443
-1960
lines changed

Some content is hidden

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

269 files changed

+3443
-1960
lines changed

Doc/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ htmlhelp: build
8888
"build/htmlhelp/pydoc.hhp project file."
8989

9090
.PHONY: latex
91+
latex: _ensure-sphinxcontrib-svg2pdfconverter
9192
latex: BUILDER = latex
9293
latex: build
9394
@echo "Build finished; the LaTeX files are in build/latex."
@@ -231,7 +232,7 @@ dist-text:
231232
@echo "Build finished and archived!"
232233

233234
.PHONY: dist-pdf
234-
dist-pdf:
235+
dist-pdf: _ensure-sphinxcontrib-svg2pdfconverter
235236
# archive the A4 latex
236237
@echo "Building LaTeX (A4 paper)..."
237238
mkdir -p dist
@@ -292,6 +293,10 @@ _ensure-pre-commit:
292293
_ensure-sphinx-autobuild:
293294
$(MAKE) _ensure-package PACKAGE=sphinx-autobuild
294295

296+
.PHONY: _ensure-sphinxcontrib-svg2pdfconverter
297+
_ensure-sphinxcontrib-svg2pdfconverter:
298+
$(MAKE) _ensure-package PACKAGE=sphinxcontrib-svg2pdfconverter
299+
295300
.PHONY: check
296301
check: _ensure-pre-commit
297302
$(VENVDIR)/bin/python3 -m pre_commit run --all-files

Doc/c-api/arg.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ API Functions
524524
Returns true on success; on failure, it returns false and raises the
525525
appropriate exception.
526526
527-
.. versionadded:: next
527+
.. versionadded:: 3.15
528528
529529
530530
.. c:function:: int PyArg_ParseArrayAndKeywords(PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames, const char *format, const char * const *kwlist, ...)
@@ -535,7 +535,7 @@ API Functions
535535
Returns true on success; on failure, it returns false and raises the
536536
appropriate exception.
537537
538-
.. versionadded:: next
538+
.. versionadded:: 3.15
539539
540540
541541
.. c:function:: int PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, ...)

Doc/c-api/dict.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ Dictionary view objects
495495
Frozen dictionary objects
496496
^^^^^^^^^^^^^^^^^^^^^^^^^
497497
498-
.. versionadded:: next
498+
.. versionadded:: 3.15
499499
500500
501501
.. c:var:: PyTypeObject PyFrozenDict_Type

Doc/c-api/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ Signal Handling
716716
This function may now execute a remote debugger script, if remote
717717
debugging is enabled.
718718
719-
.. versionchanged:: next
719+
.. versionchanged:: 3.15
720720
The exception set by :c:func:`PyThreadState_SetAsyncExc` is now raised.
721721
722722

Doc/c-api/float.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,6 @@ endian processor, or ``0`` on little endian processor.
224224
Return value: ``0`` if all is OK, ``-1`` if error (and an exception is set,
225225
most likely :exc:`OverflowError`).
226226
227-
There are two problems on non-IEEE platforms:
228-
229-
* What this does is undefined if *x* is a NaN or infinity.
230-
* ``-0.0`` and ``+0.0`` produce the same bytes string.
231-
232227
.. c:function:: int PyFloat_Pack2(double x, char *p, int le)
233228
234229
Pack a C double as the IEEE 754 binary16 half-precision format.
@@ -256,9 +251,6 @@ Return value: The unpacked double. On error, this is ``-1.0`` and
256251
:c:func:`PyErr_Occurred` is true (and an exception is set, most likely
257252
:exc:`OverflowError`).
258253
259-
Note that on a non-IEEE platform this will refuse to unpack a bytes string that
260-
represents a NaN or infinity.
261-
262254
.. c:function:: double PyFloat_Unpack2(const char *p, int le)
263255
264256
Unpack the IEEE 754 binary16 half-precision format as a C double.

Doc/c-api/import.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,14 @@ Importing Modules
350350
351351
Gets the current lazy imports mode.
352352
353-
.. versionadded:: next
353+
.. versionadded:: 3.15
354354
355355
.. c:function:: PyObject* PyImport_GetLazyImportsFilter()
356356
357357
Return a :term:`strong reference` to the current lazy imports filter,
358358
or ``NULL`` if none exists. This function always succeeds.
359359
360-
.. versionadded:: next
360+
.. versionadded:: 3.15
361361
362362
.. c:function:: int PyImport_SetLazyImportsMode(PyImport_LazyImportsMode mode)
363363
@@ -366,7 +366,7 @@ Importing Modules
366366
367367
This function always returns ``0``.
368368
369-
.. versionadded:: next
369+
.. versionadded:: 3.15
370370
371371
.. c:function:: int PyImport_SetLazyImportsFilter(PyObject *filter)
372372
@@ -377,7 +377,7 @@ Importing Modules
377377
378378
Return ``0`` on success and ``-1`` with an exception set otherwise.
379379
380-
.. versionadded:: next
380+
.. versionadded:: 3.15
381381
382382
.. c:type:: PyImport_LazyImportsMode
383383
@@ -396,7 +396,7 @@ Importing Modules
396396
Disable lazy imports entirely. Even explicit ``lazy`` statements become
397397
eager imports.
398398
399-
.. versionadded:: next
399+
.. versionadded:: 3.15
400400
401401
.. c:function:: PyObject* PyImport_CreateModuleFromInitfunc(PyObject *spec, PyObject* (*initfunc)(void))
402402

Doc/c-api/object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,4 +817,4 @@ Object Protocol
817817
Returns 1 if the object was made immortal and returns 0 if it was not.
818818
This function cannot fail.
819819
820-
.. versionadded:: next
820+
.. versionadded:: 3.15

Doc/c-api/structures.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@ under :ref:`reference counting <countingrefs>`.
4848
Do not use this field directly; use :c:macro:`Py_TYPE` and
4949
:c:func:`Py_SET_TYPE` instead.
5050

51+
.. c:member:: PyMutex ob_mutex
52+
53+
A :ref:`per-object lock <per-object-locks>`, present only in the :term:`free-threaded <free threading>`
54+
build (when :c:macro:`Py_GIL_DISABLED` is defined).
55+
56+
This field is **reserved for use by the critical section API**
57+
(:c:macro:`Py_BEGIN_CRITICAL_SECTION` / :c:macro:`Py_END_CRITICAL_SECTION`).
58+
Do **not** lock it directly with ``PyMutex_Lock``; doing so can cause
59+
deadlocks. If you need your own lock, add a separate :c:type:`PyMutex`
60+
field to your object struct.
61+
62+
.. versionadded:: 3.13
63+
5164

5265
.. c:type:: PyVarObject
5366

0 commit comments

Comments
 (0)