gh-111375: Use NULL rather than None in the exception stack to indicate that an exception was handled (#113302)
This commit is contained in:
@@ -1100,7 +1100,7 @@ dummy_func(
|
||||
|
||||
inst(POP_EXCEPT, (exc_value -- )) {
|
||||
_PyErr_StackItem *exc_info = tstate->exc_info;
|
||||
Py_XSETREF(exc_info->exc_value, exc_value);
|
||||
Py_XSETREF(exc_info->exc_value, exc_value == Py_None ? NULL : exc_value);
|
||||
}
|
||||
|
||||
inst(RERAISE, (values[oparg], exc -- values[oparg])) {
|
||||
|
||||
Reference in New Issue
Block a user