diff options
author | Victor Stinner <vstinner@python.org> | 2020-09-23 12:04:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 12:04:57 (GMT) |
commit | 19c3ac92bf73f1902cff846988552fd7bb8a8621 (patch) | |
tree | 67d42b5fe67c9c89f3ef018227b7dff150f1d7b4 /Misc | |
parent | ddc0dd001a4224274ba6f83568b45a1dd88c6fc6 (diff) | |
download | cpython-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 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C API/2020-09-22-14-47-12.bpo-41834.nrOrDU.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2020-09-22-14-47-12.bpo-41834.nrOrDU.rst b/Misc/NEWS.d/next/C API/2020-09-22-14-47-12.bpo-41834.nrOrDU.rst new file mode 100644 index 0000000..07043dc --- /dev/null +++ b/Misc/NEWS.d/next/C API/2020-09-22-14-47-12.bpo-41834.nrOrDU.rst @@ -0,0 +1,3 @@ +Remove the ``_Py_CheckRecursionLimit`` variable: it has been replaced by +``ceval.recursion_limit`` of the :c:type:`PyInterpreterState` +structure. Patch by Victor Stinner. |