mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Variant of patch #697613: don't exit the interpreter on a SystemExit
exception if the -i command line option or PYTHONINSPECT environment variable is given, but break into the interactive interpreter just like on other exceptions or normal program exit. (backport)
This commit is contained in:
parent
8537c303c7
commit
49aafc9f2c
4 changed files with 23 additions and 11 deletions
|
|
@ -8,6 +8,7 @@ extern "C" {
|
|||
PyAPI_DATA(int) Py_DebugFlag;
|
||||
PyAPI_DATA(int) Py_VerboseFlag;
|
||||
PyAPI_DATA(int) Py_InteractiveFlag;
|
||||
PyAPI_DATA(int) Py_InspectFlag;
|
||||
PyAPI_DATA(int) Py_OptimizeFlag;
|
||||
PyAPI_DATA(int) Py_NoSiteFlag;
|
||||
PyAPI_DATA(int) Py_UseClassExceptionsFlag;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue