]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107298: Fix more Sphinx warnings in the C API doc (#107329)
authorVictor Stinner <vstinner@python.org>
Thu, 27 Jul 2023 00:52:40 +0000 (02:52 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Jul 2023 00:52:40 +0000 (00:52 +0000)
commit8d61a71f9c81619e34d4a30b625922ebc83c561b
treebd75cd21a961bbf99156b29a5eeb853ba61366b1
parent391e03fa05b80d17a14ac88d30c974fa2fa00adb
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
23 files changed:
Doc/c-api/allocation.rst
Doc/c-api/capsule.rst
Doc/c-api/complex.rst
Doc/c-api/conversion.rst
Doc/c-api/exceptions.rst
Doc/c-api/gcsupport.rst
Doc/c-api/import.rst
Doc/c-api/init.rst
Doc/c-api/init_config.rst
Doc/c-api/memory.rst
Doc/c-api/module.rst
Doc/c-api/set.rst
Doc/c-api/structures.rst
Doc/c-api/sys.rst
Doc/c-api/typeobj.rst
Doc/c-api/unicode.rst
Doc/conf.py
Doc/extending/extending.rst
Doc/extending/newtypes_tutorial.rst
Doc/tools/.nitignore
Doc/whatsnew/2.3.rst
Doc/whatsnew/3.8.rst
Doc/whatsnew/3.9.rst