diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-27 00:52:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 00:52:40 (GMT) |
commit | 8d61a71f9c81619e34d4a30b625922ebc83c561b (patch) | |
tree | bd75cd21a961bbf99156b29a5eeb853ba61366b1 /Doc/whatsnew/2.3.rst | |
parent | 391e03fa05b80d17a14ac88d30c974fa2fa00adb (diff) | |
download | cpython-8d61a71f9c81619e34d4a30b625922ebc83c561b.zip cpython-8d61a71f9c81619e34d4a30b625922ebc83c561b.tar.gz cpython-8d61a71f9c81619e34d4a30b625922ebc83c561b.tar.bz2 |
gh-107298: Fix more Sphinx warnings in the C API doc (#107329)
Declare the following functions as macros, since they are actually
macros. It avoids a warning on "TYPE" or "macro" argument.
* PyMem_New()
* PyMem_Resize()
* PyModule_AddIntMacro()
* PyModule_AddStringMacro()
* PyObject_GC_New()
* PyObject_GC_NewVar()
* PyObject_New()
* PyObject_NewVar()
Add C standard C types to nitpick_ignore in Doc/conf.py:
* int64_t
* uint64_t
* uintptr_t
No longer ignore non existing "__int" type in nitpick_ignore.
Update Doc/tools/.nitignore
Diffstat (limited to 'Doc/whatsnew/2.3.rst')
-rw-r--r-- | Doc/whatsnew/2.3.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/2.3.rst b/Doc/whatsnew/2.3.rst index c1722e5..a96c106 100644 --- a/Doc/whatsnew/2.3.rst +++ b/Doc/whatsnew/2.3.rst @@ -1847,7 +1847,7 @@ specifically for allocating Python objects. :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc`, and :c:func:`PyObject_Free`. * To allocate and free Python objects, use the "object" family - :c:func:`PyObject_New`, :c:func:`PyObject_NewVar`, and :c:func:`PyObject_Del`. + :c:macro:`PyObject_New`, :c:macro:`PyObject_NewVar`, and :c:func:`PyObject_Del`. Thanks to lots of work by Tim Peters, pymalloc in 2.3 also provides debugging features to catch memory overwrites and doubled frees in both extension modules |