Closed
Description
Using grep
, I identified 3 instances in main
where code checks if Py_EnterRecursiveCall(...) < 0
(which just returns _Py_EnterRecursiveCall(...)
) or _Py_EnterRecursiveCall(...) < 0
.
Py_EnterRecursiveCall()
documentation only guarantees that a nonzero value is returned in the event of an error.- The actual implementation can't return a negative value:
cpython/Include/internal/pycore_ceval.h
Lines 130 to 138 in 7644935