summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_ceval.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-09-23 12:04:57 (GMT)
committerGitHub <noreply@github.com>2020-09-23 12:04:57 (GMT)
commit19c3ac92bf73f1902cff846988552fd7bb8a8621 (patch)
tree67d42b5fe67c9c89f3ef018227b7dff150f1d7b4 /Include/internal/pycore_ceval.h
parentddc0dd001a4224274ba6f83568b45a1dd88c6fc6 (diff)
downloadcpython-19c3ac92bf73f1902cff846988552fd7bb8a8621.zip
cpython-19c3ac92bf73f1902cff846988552fd7bb8a8621.tar.gz
cpython-19c3ac92bf73f1902cff846988552fd7bb8a8621.tar.bz2
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.
Diffstat (limited to 'Include/internal/pycore_ceval.h')
-rw-r--r--Include/internal/pycore_ceval.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h
index aafb533..bbb667e 100644
--- a/Include/internal/pycore_ceval.h
+++ b/Include/internal/pycore_ceval.h
@@ -63,8 +63,6 @@ extern void _PyEval_ReleaseLock(PyThreadState *tstate);
/* --- _Py_EnterRecursiveCall() ----------------------------------------- */
-PyAPI_DATA(int) _Py_CheckRecursionLimit;
-
#ifdef USE_STACKCHECK
/* With USE_STACKCHECK macro defined, trigger stack checks in
_Py_CheckRecursiveCall() on every 64th call to Py_EnterRecursiveCall. */