diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-28 07:03:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 07:03:47 (GMT) |
commit | 32e17d4a3c1da2a8ff082b5cb4f3cd13688a95a1 (patch) | |
tree | 23823b6366d409c3bbb5e8018cc1f039121090fe /Doc/c-api/sys.rst | |
parent | dcfdfa539964a66fcc39722bada52e440f06a877 (diff) | |
download | cpython-32e17d4a3c1da2a8ff082b5cb4f3cd13688a95a1.zip cpython-32e17d4a3c1da2a8ff082b5cb4f3cd13688a95a1.tar.gz cpython-32e17d4a3c1da2a8ff082b5cb4f3cd13688a95a1.tar.bz2 |
[3.11] gh-107298: Fix more Sphinx warnings in the C API doc (GH-107329) (GH-107377)
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()
(cherry picked from commit 8d61a71f9c81619e34d4a30b625922ebc83c561b)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Doc/c-api/sys.rst')
-rw-r--r-- | Doc/c-api/sys.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/sys.rst b/Doc/c-api/sys.rst index 57a36c0..34028d6 100644 --- a/Doc/c-api/sys.rst +++ b/Doc/c-api/sys.rst @@ -412,7 +412,7 @@ Process Control This function should only be invoked when a condition is detected that would make it dangerous to continue using the Python interpreter; e.g., when the object administration appears to be corrupted. On Unix, the standard C library - function :c:func:`abort` is called which will attempt to produce a :file:`core` + function :c:func:`!abort` is called which will attempt to produce a :file:`core` file. The ``Py_FatalError()`` function is replaced with a macro which logs |