]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106320: Remove private AC converter functions (#108505)
authorVictor Stinner <vstinner@python.org>
Sat, 26 Aug 2023 02:05:17 +0000 (04:05 +0200)
committerGitHub <noreply@github.com>
Sat, 26 Aug 2023 02:05:17 +0000 (04:05 +0200)
commit8ba47146111d714c7b61825d43b52311d9be366d
tree061438cacfecebab0264ef41fb94e11a40431924
parent6353c21b78a3d91e7cd7810f1c00258a34e85fe7
gh-106320: Remove private AC converter functions (#108505)

Move these private functions to the internal C API
(pycore_abstract.h):

* _Py_convert_optional_to_ssize_t()
* _PyNumber_Index()

Argument Clinic now emits #include "pycore_abstract.h" when these
functions are used.

The parser of the c-analyzer tool now uses a list of files which use
the limited C API, rather than a list of files using the internal C
API.
41 files changed:
Include/cpython/abstract.h
Include/internal/pycore_abstract.h
Modules/_io/_iomodule.c
Modules/_io/clinic/bufferedio.c.h
Modules/_io/clinic/bytesio.c.h
Modules/_io/clinic/fileio.c.h
Modules/_io/clinic/iobase.c.h
Modules/_io/clinic/stringio.c.h
Modules/_io/clinic/textio.c.h
Modules/_io/clinic/winconsoleio.c.h
Modules/_sre/clinic/sre.c.h
Modules/clinic/_bisectmodule.c.h
Modules/clinic/_bz2module.c.h
Modules/clinic/_collectionsmodule.c.h
Modules/clinic/_elementtree.c.h
Modules/clinic/_hashopenssl.c.h
Modules/clinic/_lzmamodule.c.h
Modules/clinic/_operator.c.h
Modules/clinic/_ssl.c.h
Modules/clinic/_struct.c.h
Modules/clinic/_testclinic.c.h
Modules/clinic/_testclinic_depr.c.h
Modules/clinic/arraymodule.c.h
Modules/clinic/gcmodule.c.h
Modules/clinic/itertoolsmodule.c.h
Modules/clinic/posixmodule.c.h
Modules/clinic/zlibmodule.c.h
Modules/mathmodule.c
Modules/mmapmodule.c
Modules/posixmodule.c
Objects/clinic/bytearrayobject.c.h
Objects/clinic/bytesobject.c.h
Objects/clinic/listobject.c.h
Objects/clinic/longobject.c.h
Objects/clinic/unicodeobject.c.h
Objects/floatobject.c
Objects/stringlib/clinic/transmogrify.h.h
Python/clinic/_warnings.c.h
Python/getargs.c
Tools/c-analyzer/c_parser/preprocessor/gcc.py
Tools/clinic/clinic.py