We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1719856 commit a5c1cd8Copy full SHA for a5c1cd8
Python/sysmodule.c
@@ -917,7 +917,8 @@ sys_exit_impl(PyObject *module, PyObject *status)
917
{
918
/* Raise SystemExit so callers may catch it or clean up. */
919
if (PyTuple_Check(status)) {
920
- /* Make sure that tuples are not flattened during normalization. */
+ /* Make sure that tuples are not flattened during normalization
921
+ * due to the fast path for tuples in _PyErr_CreateException(). */
922
PyObject *exc = PyObject_CallOneArg(PyExc_SystemExit, status);
923
PyErr_SetObject(PyExc_SystemExit, exc);
924
Py_DECREF(exc);
0 commit comments