]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT (#108507)
authorVictor Stinner <vstinner@python.org>
Fri, 8 Sep 2023 09:48:28 +0000 (11:48 +0200)
committerGitHub <noreply@github.com>
Fri, 8 Sep 2023 09:48:28 +0000 (09:48 +0000)
commitb0edf3b98e4b3e68a13776e034b9dd86ad7e529d
tree98e1b3a6fe21a9cd32d2143e4a85c74f57b2b007
parent15d4c9fabce67b8a1b5bd9dec9612014ec18291a
GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT (#108507)

Symbols of the C API should be prefixed by "Py_" to avoid conflict
with existing names in 3rd party C extensions on "#include <Python.h>".

test.pythoninfo now logs Py_C_RECURSION_LIMIT constant and other
_testcapi and _testinternalcapi constants.
17 files changed:
Include/cpython/pystate.h
Lib/test/list_tests.py
Lib/test/mapping_tests.py
Lib/test/pythoninfo.py
Lib/test/support/__init__.py
Lib/test/test_compile.py
Lib/test/test_dict.py
Lib/test/test_dictviews.py
Lib/test/test_exception_group.py
Modules/_testcapimodule.c
Modules/_testinternalcapi.c
Parser/asdl_c.py
Python/Python-ast.c
Python/ast.c
Python/ast_opt.c
Python/pystate.c
Python/symtable.c