https://github.com/python/cpython/commit/a439f8531f4e61e6d475bb4754a1f466a3aaffe3
commit: a439f8531f4e61e6d475bb4754a1f466a3aaffe3
branch: 3.13
author: Petr Viktorin <[email protected]>
committer: Yhg1s <[email protected]>
date: 2024-09-23T16:22:04-07:00
summary:
[3.13] gh-118915: Add/fix docs entries for some new 3.13 C API (GH-124134)
(#124244)
gh-118915: Add/fix docs entries for some new 3.13 C API (GH-124134)
(cherry picked from commit 32119fc377a4d9df524a7bac02b6922a990361dd)
files:
M Doc/c-api/exceptions.rst
M Doc/c-api/long.rst
M Doc/c-api/module.rst
M Doc/conf.py
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 372fc1dde8fc0d..05349590975160 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -1004,6 +1004,7 @@ the variables:
single: PyExc_OverflowError (C var)
single: PyExc_PermissionError (C var)
single: PyExc_ProcessLookupError (C var)
+ single: PyExc_PythonFinalizationError (C var)
single: PyExc_RecursionError (C var)
single: PyExc_ReferenceError (C var)
single: PyExc_RuntimeError (C var)
@@ -1096,6 +1097,8 @@ the variables:
+-----------------------------------------+---------------------------------+----------+
| :c:data:`PyExc_ProcessLookupError` | :exc:`ProcessLookupError` |
|
+-----------------------------------------+---------------------------------+----------+
+| :c:data:`PyExc_PythonFinalizationError` | :exc:`PythonFinalizationError` |
|
++-----------------------------------------+---------------------------------+----------+
| :c:data:`PyExc_RecursionError` | :exc:`RecursionError` |
|
+-----------------------------------------+---------------------------------+----------+
| :c:data:`PyExc_ReferenceError` | :exc:`ReferenceError` |
|
diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst
index 842bf172043137..6de165d0b26df4 100644
--- a/Doc/c-api/long.rst
+++ b/Doc/c-api/long.rst
@@ -452,6 +452,8 @@ distinguished from a number. Use :c:func:`PyErr_Occurred`
to disambiguate.
Currently, ``-1`` corresponds to
``Py_ASNATIVEBYTES_NATIVE_ENDIAN | Py_ASNATIVEBYTES_UNSIGNED_BUFFER``.
+ .. c:namespace:: NULL
+
============================================= ======
Flag Value
============================================= ======
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst
index 3c779488813383..ec61be284caad9 100644
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -421,6 +421,8 @@ The available slot types are:
Specifies one of the following values:
+ .. c:namespace:: NULL
+
.. c:macro:: Py_MOD_GIL_USED
The module depends on the presence of the global interpreter lock (GIL),
diff --git a/Doc/conf.py b/Doc/conf.py
index 8e45453215e4c3..69a2c468ec3555 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -132,6 +132,8 @@
('c:func', 'vsnprintf'),
# Standard C types
('c:type', 'FILE'),
+ ('c:type', 'int8_t'),
+ ('c:type', 'int16_t'),
('c:type', 'int32_t'),
('c:type', 'int64_t'),
('c:type', 'intmax_t'),
@@ -142,6 +144,8 @@
('c:type', 'ssize_t'),
('c:type', 'time_t'),
('c:type', 'uint8_t'),
+ ('c:type', 'uint16_t'),
+ ('c:type', 'uint32_t'),
('c:type', 'uint64_t'),
('c:type', 'uintmax_t'),
('c:type', 'uintptr_t'),
@@ -244,6 +248,7 @@
('c:data', 'PyExc_OverflowError'),
('c:data', 'PyExc_PermissionError'),
('c:data', 'PyExc_ProcessLookupError'),
+ ('c:data', 'PyExc_PythonFinalizationError'),
('c:data', 'PyExc_RecursionError'),
('c:data', 'PyExc_ReferenceError'),
('c:data', 'PyExc_RuntimeError'),
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]