]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41834: Remove _Py_CheckRecursionLimit variable (GH-22359)
authorVictor Stinner <vstinner@python.org>
Wed, 23 Sep 2020 12:04:57 +0000 (14:04 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Sep 2020 12:04:57 +0000 (14:04 +0200)
commit19c3ac92bf73f1902cff846988552fd7bb8a8621
tree67d42b5fe67c9c89f3ef018227b7dff150f1d7b4
parentddc0dd001a4224274ba6f83568b45a1dd88c6fc6
bpo-41834: Remove _Py_CheckRecursionLimit variable (GH-22359)

Remove the global _Py_CheckRecursionLimit variable: it has been
replaced by ceval.recursion_limit of the PyInterpreterState
structure.

There is no need to keep the variable for the stable ABI, since
Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() were not usable
in Python 3.8 and older: these macros accessed PyThreadState members,
whereas the PyThreadState structure is opaque in the limited C API.
Doc/whatsnew/3.10.rst
Include/internal/pycore_ceval.h
Misc/NEWS.d/next/C API/2020-09-22-14-47-12.bpo-41834.nrOrDU.rst [new file with mode: 0644]
PC/python3dll.c
Python/ceval.c
Tools/c-analyzer/TODO
Tools/c-analyzer/known.tsv