Miss Islington (bot)
aa2c8ea1e7
[3.13] gh-141004: Document PyFunction_SetKwDefaults (GH-141294) (GH-141305)
...
gh-141004: Document `PyFunction_SetKwDefaults` (GH-141294)
(cherry picked from commit 18529b580b )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-11-09 17:55:02 +00:00
Miss Islington (bot)
a9619899fc
[3.13] gh-141004: Document PyExceptionInstance* APIs (GH-141301) (GH-141303)
...
gh-141004: Document `PyExceptionInstance*` APIs (GH-141301)
(cherry picked from commit b5a0c72492 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-11-09 12:20:18 -05:00
Miss Islington (bot)
92ae15802d
[3.13] gh-141004: Document Py_func_type_input (GH-141273) (GH-141299)
...
gh-141004: Document `Py_func_type_input` (GH-141273)
(cherry picked from commit 8dd8498286 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-11-09 16:28:26 +00:00
Miss Islington (bot)
2dd8812850
[3.13] gh-141004: document curses C API (GH-141254) ( #141293 )
...
gh-141004: document `curses` C API (GH-141254)
(cherry picked from commit dbe40904a7 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-11-09 15:50:46 +00:00
Miss Islington (bot)
a6d980472d
[3.13] gh-141004: Document PyWeakref_CheckRefExact (GH-141279) (GH-141291)
...
gh-141004: Document `PyWeakref_CheckRefExact` (GH-141279)
(cherry picked from commit 60155329a0 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-11-09 15:39:53 +00:00
Peter Bierma
7b3f7ffb47
[3.13] gh-141004: Document deprecated aliases for memory allocation (GH-141146) (GH-141289)
...
* gh-141004: Document deprecated aliases for memory allocation (GH-141146)
(cherry picked from commit 1d738dea63 )
2025-11-09 15:37:13 +00:00
Miss Islington (bot)
1cd0b74350
[3.13] gh-141004: Document Py_BUILD_ASSERT* macros (GH-141266) (GH-141270)
...
gh-141004: Document `Py_BUILD_ASSERT*` macros (GH-141266)
(cherry picked from commit 0ac890bea7 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-11-08 19:28:32 +00:00
Miss Islington (bot)
2a300e3642
[3.13] gh-141004: Document the PyDoc_VAR macro (GH-141263) (GH-141265)
...
gh-141004: Document the `PyDoc_VAR` macro (GH-141263)
(cherry picked from commit 545299773b )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-11-08 18:20:56 +00:00
Miss Islington (bot)
10d44f72e5
[3.13] gh-141004: Document PyBUF_WRITEABLE (GH-141255) (GH-141260)
...
gh-141004: Document `PyBUF_WRITEABLE` (GH-141255)
(cherry picked from commit 5e5fc0404e )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-11-08 17:37:04 +00:00
Miss Islington (bot)
e46b808978
[3.13] gh-141004: Document PyErr_ProgramTextObject and PyErr_ProgramText (GH-141250) (GH-141257)
...
gh-141004: Document `PyErr_ProgramTextObject` and `PyErr_ProgramText` (GH-141250)
(cherry picked from commit be1c72a45d )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-11-08 15:53:28 +00:00
Miss Islington (bot)
f8147a0316
[3.13] gh-141004: correctly document Py_HASH_* and PyHASH_* as hash_info attributes (GH-141233) ( #141235 )
...
gh-141004: correctly document `Py_HASH_*` and `PyHASH_*` as `hash_info` attributes (GH-141233)
(cherry picked from commit 87942d911b )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-11-08 12:29:55 +00:00
Miss Islington (bot)
a728f7f89f
[3.13] gh-141004: Document Py_HASH_* macros (GH-141205) ( #141224 )
...
* gh-141004: Document `Py_HASH_*` macros (GH-141205)
(cherry picked from commit 3989e12d39 )
(cherry picked from commit 8cec3d3a9d )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-11-08 09:22:02 +00:00
Miss Islington (bot)
0efb799852
[3.13] gh-141004: Document PyTraceBack* APIs (GH-141192) (GH-141211)
...
gh-141004: Document `PyTraceBack*` APIs (GH-141192)
(cherry picked from commit d13ee0ae18 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-11-07 18:53:05 +00:00
Miss Islington (bot)
26c2a49857
[3.13] gh-141004: Document PyErr_WarnExplicitFormat (GH-141187) (GH-141203)
...
gh-141004: Document `PyErr_WarnExplicitFormat` (GH-141187)
(cherry picked from commit 9420795b47 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-11-07 16:25:58 +00:00
Miss Islington (bot)
09cc93dc67
[3.13] gh-141004: Document PyCapsule_Type (GH-141079) (GH-141198)
...
gh-141004: Document `PyCapsule_Type` (GH-141079)
(cherry picked from commit 7af9b5354d )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-11-07 14:16:14 +00:00
Miss Islington (bot)
00032a4245
[3.13] gh-141004: Document Py_GetRecursionLimit and Py_SetRecursionLimit (GH-141151) (GH-141157)
...
* gh-141004: Document `Py_GetRecursionLimit` and `Py_SetRecursionLimit` (GH-141151)
(cherry picked from commit 0b260305d3 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
---------
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-11-06 17:00:03 +00:00
Peter Bierma
908695b5c7
[3.13] gh-141004: Document PyLong_FromPid and PyLong_AsPid (GH-141028) (GH-141143)
...
* gh-141004: Document `PyLong_FromPid` and `PyLong_AsPid` (GH-141028)
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit bcc524f82d )
2025-11-06 14:10:24 +00:00
Miss Islington (bot)
ccbee02436
[3.13] gh-141004: Document Py_hexdigits (GH-141059) (GH-141139)
...
gh-141004: Document `Py_hexdigits` (GH-141059)
(cherry picked from commit 54110e20e0 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-11-06 13:56:14 +00:00
Miss Islington (bot)
a8cd8f0441
[3.13] gh-141004: Document built-in iterator types in the C API (GH-141006) (GH-141135)
...
gh-141004: Document built-in iterator types in the C API (GH-141006)
Adds documentation for each of the following:
- PyEnum_Type
- PyFilter_Type
- PyMap_Type
- PyReversed_Type
- PyZip_Type
In addition, PyRange_Type and PyRange_Check are also documented.
(cherry picked from commit 1697cb5710 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-11-06 12:35:31 +00:00
Miss Islington (bot)
fc059dbe55
[3.13] gh-141004: Document PyDict_GET_SIZE (GH-141078) (GH-141083)
...
gh-141004: Document `PyDict_GET_SIZE` (GH-141078)
(cherry picked from commit f0ab07f22c )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-11-05 22:41:16 +00:00
Miss Islington (bot)
4907f37eed
[3.13] gh-141004: Document Py_RETURN_NAN and Py_RETURN_INF (GH-141029) (GH-141075)
...
gh-141004: Document `Py_RETURN_NAN` and `Py_RETURN_INF` (GH-141029)
(cherry picked from commit 5b02c6e920 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-11-05 22:06:41 +00:00
Miss Islington (bot)
7ac9048ce9
[3.13] gh-141004: Document PyMemoryView_Type (GH-141034) (GH-141055)
...
gh-141004: Document `PyMemoryView_Type` (GH-141034)
(cherry picked from commit 3f6aca1be4 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-11-05 16:51:31 +00:00
Miss Islington (bot)
a3756c6ea0
[3.13] gh-141004: Document missing iterator types in the C API (GH-141010) (GH-141047)
...
gh-141004: Document missing iterator types in the C API (GH-141010)
Add documentation for each of the following:
- PyByteArrayIter_Type
- PyBytesIter_Type
- PyListIter_Type
- PyListRevIter_Type
- PySetIter_Type
- PyTupleIter_Type
- PyRangeIter_Type
- PyLongRangeIter_Type
- PyDictIterKey_Type
- PyDictRevIterKey_Type
- PyDictIterValue_Type
- PyDictRevIterValue_Type
- PyDictIterItem_Type
- PyDictRevIterItem_Type
---------
(cherry picked from commit 35528fccdc )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-11-05 14:22:32 +00:00
Miss Islington (bot)
82ed4d0707
[3.13] gh-141004: Document Py_UNICODE_{HIGH, LOW}_SURROGATE functions (GH-141019) (GH-141026)
...
gh-141004: Document `Py_UNICODE_{HIGH, LOW}_SURROGATE` functions (GH-141019)
(cherry picked from commit bfe54810c4 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-11-04 21:24:52 +00:00
Hugo van Kemenade
5a2bcbd452
[3.13] Fix minor typos and wording in C API docs (GH-140955) ( #140967 )
...
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-11-04 09:46:18 +02:00
Miss Islington (bot)
b8910fc444
[3.13] Docs: avoid informal formulation in Doc/c-api/conversion.rst (GH-140898) ( #140913 )
...
Docs: avoid informal formulation in `Doc/c-api/conversion.rst` (GH-140898)
(cherry picked from commit 173cc53d9f )
Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
2025-11-02 13:57:03 +00:00
Miss Islington (bot)
6ba31ca5d5
[3.13] Docs: fix some grammatical errors in Doc/c-api/dict.rst (GH-140899) ( #140902 )
...
Docs: fix some grammatical errors in `Doc/c-api/dict.rst` (GH-140899)
(cherry picked from commit d12cbf2865 )
Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
2025-11-02 08:39:12 +00:00
Miss Islington (bot)
134e2f8d7f
[3.13] Docs: Replace "encoder" with "decoder" in Doc/c-api/codec.rst (GH-140613) ( #140662 )
...
Docs: Replace "encoder" with "decoder" in `Doc/c-api/codec.rst` (GH-140613)
(cherry picked from commit d12086e822 )
Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
2025-10-27 09:51:34 +00:00
Miss Islington (bot)
d64b05b284
[3.13] Docs: Fix a grammatical error in Doc/c-api/codec.rst (GH-140612) ( #140617 )
...
Docs: Fix a grammatical error in `Doc/c-api/codec.rst` (GH-140612)
(cherry picked from commit 33b2ca80bb )
Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
2025-10-26 09:45:42 +00:00
Miss Islington (bot)
df86b18f7f
[3.13] Fix typo in Doc/c-api/code.rst (GH-140586) ( #140592 )
...
Fix typo in `Doc/c-api/code.rst` (GH-140586)
(cherry picked from commit d74a96366d )
Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
2025-10-25 15:43:00 +00:00
Miss Islington (bot)
01cab860c0
[3.13] Docs: Fix a grammatical error in Doc/c-api/capsule.rst (GH-140577) (GH-140581)
...
Docs: Fix a grammatical error in `Doc/c-api/capsule.rst` (GH-140577)
"who" -> "which"
(cherry picked from commit 4ad599501f )
Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
2025-10-25 14:03:25 +00:00
Miss Islington (bot)
5c99b6c576
[3.13] Document that PyModule_GetDef can return NULL with or without setting an exception (GH-140529) (GH-140546)
...
(cherry picked from commit 289360ae63 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-10-24 13:37:09 +00:00
Miss Islington (bot)
7564125ed1
[3.13] Docs: Fix a grammatical error in Doc/c-api/arg.rst (GH-140525) (GH-140539)
...
Docs: Fix a grammatical error in `Doc/c-api/arg.rst` (GH-140525)
"have" -> "has"
(cherry picked from commit fc2e23c2ed )
Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
2025-10-24 12:24:41 +00:00
Miss Islington (bot)
278384150a
[3.13] gh-107073: fix relevant typo in PyObject_ClearManagedDict (GH-140032) ( #140034 )
...
gh-107073: fix relevant typo in `PyObject_ClearManagedDict` (GH-140032)
(cherry picked from commit 52996aaa78 )
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
2025-10-13 11:29:41 +00:00
Stan Ulbrych
d12bd1ba1a
[3.13] gh-101100: Fix reference warnings in c-api/init.rst document… ( #139833 )
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-09 18:20:34 +03:00
Thomas Wouters
a15ae614de
Python 3.13.8
2025-10-07 14:01:51 +02:00
Miss Islington (bot)
0114bbe43a
[3.13] Document that PyInterpreterState_GetDict returns a borrowed reference (GH-139451) ( #139464 )
...
Document that `PyInterpreterState_GetDict` returns a borrowed reference (GH-139451)
(cherry picked from commit 80cdf3ef74 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-10-01 11:26:39 +05:30
Miss Islington (bot)
24b699231b
[3.13] Document Py_AddPendingCall() change with subinterpreters in 3.12 (GH-139117) (GH-139119)
...
Document `Py_AddPendingCall()` change with subinterpreters in 3.12 (GH-139117)
Prior to 3.9, Py_AddPendingCall() would always run pending calls in the main interpreter, but then each interpreter got their own ceval state, and they were scheduled for any interpreter. In GH-104813, this was undone, so Py_AddPendingCall() would always schedule for the main interpreter.
(cherry picked from commit 89ff88be89 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-09-18 12:17:06 +00:00
Miss Islington (bot)
8ef549069c
[3.13] gh-129368: In PyRun C API docs, clarify what a "start token" is (GH-129935) ( #139043 )
...
(cherry picked from commit e1eca8b308 )
Co-authored-by: Rajhans Jadhao <rajhans.jadhao@gmail.com>
2025-09-17 17:05:29 +01:00
Miss Islington (bot)
282bd0fe98
[3.13] Add impl-detail block for PyLong_FromLong docs (GH-126422) ( #138695 )
...
Add impl-detail block for PyLong_FromLong docs (GH-126422)
(cherry picked from commit fd2e3d1633 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
2025-09-09 09:30:44 +00:00
Miss Islington (bot)
7e0dfe5ba6
[3.13] gh-138644: Update c-api docs of PyInterpreterState about PEP-684 (GH-138651) ( #138658 )
...
gh-138644: Update c-api docs of `PyInterpreterState` about PEP-684 (GH-138651)
(cherry picked from commit 4f0c267b40 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-09-08 13:52:45 +00:00
Miss Islington (bot)
0a72696f45
[3.13] enhance docs for critical sections (GH-137334) ( #138168 )
...
enhance docs for critical sections (GH-137334)
(cherry picked from commit 5ae8b97f6b )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-08-26 17:26:09 +00:00
Gregory P. Smith
9face218e7
[3.13] gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805) (GH-137827)
...
* [3.13] gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805)
Instead of surprise crashes and memory corruption, we now hang threads that attempt to re-enter the Python interpreter after Python runtime finalization has started. These are typically daemon threads (our long standing mis-feature) but could also be threads spawned by extension modules that then try to call into Python. This marks the `PyThread_exit_thread` public C API as deprecated as there is no plausible safe way to accomplish that on any supported platform in the face of things like C++ code with finalizers anywhere on a thread's stack. Doing this was the least bad option.
(cherry picked from commit 8cc5aa47ee )
Co-authored-by: Jeremy Maitin-Shepard <jeremy@jeremyms.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
* state "3.13.7 and earlier"
* backport: do not add the deprecated marker
* fix Py_IsFinalizing doc ref
---------
Co-authored-by: Jeremy Maitin-Shepard <jeremy@jeremyms.com>
2025-08-17 09:08:14 -07:00
Miss Islington (bot)
0c8c7fb2dc
[3.13] Fix documentation of hash in PyHash_FuncDef (GH-137595) ( #137643 )
...
Fix documentation of hash in PyHash_FuncDef (GH-137595)
Because of a small typo, it wasn't showing up in the generated docs.
(cherry picked from commit 70218b4008 )
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
2025-08-11 11:25:13 +00:00
Petr Viktorin
3b28cb0f3f
[3.13] gh-135755: Document __future__.* and CO_* as proper Sphinx objects (GH-135980) (GH-136371)
...
* Turn the __future__ table to list-table.
This'll make it easier to add entries that need longer markup
* Semantic markup for __future__ feature descriptions.
* Document CO_* C macros.
(cherry picked from commit 2468aafe98 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-08-02 16:19:20 +02:00
Miss Islington (bot)
c99fad72a1
[3.13] Doc/c-api/memory.rst: extend --without-pymalloc doc with ASan information (GH-136790) ( #136799 )
...
Extends the documentation for disabling pymalloc with the `--without-pymalloc` flag regarding why it is worth to use it when enabling AddressSanitizer for Python build (which is done, e.g., in CPython's CI builds).
(cherry picked from commit d19bb44713 )
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-07-20 10:55:40 +02:00
Miss Islington (bot)
592a31369e
[3.13] gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664) ( #136667 )
...
gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664)
(cherry picked from commit e4654e0b3e )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-07-15 05:37:55 +00:00
Miss Islington (bot)
15e9c3bc51
[3.13] gh-136209: Add .. c:var:: declarations for C exception types (GH-136210) (GH-136503)
...
(cherry picked from commit 85bc89f35f )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-07-10 15:10:51 +02:00
Miss Islington (bot)
a2f1d22a36
[3.13] gh-76595: Add note on PyCapsule_Import behavior (GH-134022) (GH-136075)
...
gh-76595: Add note on `PyCapsule_Import` behavior (GH-134022)
(cherry picked from commit 579acf4562 )
Co-authored-by: Nicolas Trangez <ikke@nicolast.be>
2025-06-28 13:07:42 +00:00
Brian Schubert
cee66dd2a0
[3.13] Docs: Fix duplicate word typos (GH-135958) (GH-136008)
...
(cherry picked from commit 34ce1920ca )
2025-06-26 20:13:46 -04:00