Uh oh!
There was an error while loading. Please reload this page.
GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT - #108507
Conversation
vstinner
commented
Aug 26, 2023
@iritkatriel: Are you ok with this rename? |
vstinner
commented
Aug 30, 2023
cc @markshannon |
| layout, optimization, and WASI runtime. Wasmtime can handle about 700 | ||
| recursions, sometimes less. 500 is a more conservative limit. */ | ||
| #ifndef C_RECURSION_LIMIT | ||
| #ifndef Py_C_RECURSION_LIMIT |
There was a problem hiding this comment.
I don't know if it's relevant to support that. It's supposed to be a constant built into Python, no?
vstinner
commented
Aug 31, 2023
@iritkatriel: I removed |
vstinner
commented
Sep 6, 2023
It's too late to backport to Python 3.12. |
vstinner
commented
Sep 7, 2023
I don't think that it makes sense to override the Building Python with a different Including In short, IMO it's a good thing to remove |
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 logs Py_C_RECURSION_LIMIT and other _testcapi and _testinternalcapi constants.
db18b1a to
59e929bComparevstinner
commented
Sep 8, 2023
Since Py_C_RECURSION_LIMIT value is different on WASI, I modified |
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>.