]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-118915: Add/fix docs entries for some new 3.13 C API (GH-124134) (#124244)
authorPetr Viktorin <encukou@gmail.com>
Mon, 23 Sep 2024 23:22:04 +0000 (01:22 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 23:22:04 +0000 (16:22 -0700)
gh-118915: Add/fix docs entries for some new 3.13 C API (GH-124134)

(cherry picked from commit 32119fc377a4d9df524a7bac02b6922a990361dd)

Doc/c-api/exceptions.rst
Doc/c-api/long.rst
Doc/c-api/module.rst
Doc/conf.py

index 372fc1dde8fc0db1c052404ae03a030774034c84..05349590975160231987f6450186460e7190df01 100644 (file)
@@ -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`           |          |
index 842bf172043137495359919bd46546cd09cebaa6..6de165d0b26df453e1e78928415260548a935886 100644 (file)
@@ -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
    ============================================= ======
index 3c779488813383f393f4f05b1e92d05fcb1ca267..ec61be284caad90dad14bd02321f4ad4b65d03e3 100644 (file)
@@ -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),
index 8e45453215e4c326d51136a94b22e6b8fabbb2f8..69a2c468ec3555494bdde34b8e9aa6e33da0d9ec 100644 (file)
@@ -132,6 +132,8 @@ nitpick_ignore = [
     ('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 @@ nitpick_ignore = [
     ('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 @@ nitpick_ignore += [
     ('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'),