This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: sys.exit and PYTHONINSPECT
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, kasplat, mbrierst
Priority: normal Keywords:

Created on 2003-01-18 16:43 by kasplat, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Messages (3)
msg14119 - (view) Author: Kevin Altis (kasplat) Date: 2003-01-18 16:43
If you invoke the Python interpreter with -i, then even 
sys.exit shouldn't kill the interpreter, especially since 
sys.exit generates a SystemExit exception which can 
be caught. I can't think of any other case where -i fails to 
keep the interpreter alive after a script exits, whether 
because of an syntax or runtime error or normal 
termination.

I started a thread on python-dev about this issue:

http://mail.python.org/pipermail/python-dev/2003-
January/032217.html

ka
msg14120 - (view) Author: Michael Stone (mbrierst) Date: 2003-03-04 23:26
Logged In: YES 
user_id=670441

See patch 697613 for a possible fix.
msg14121 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-03-07 00:35
This was now fixed in rev. 54188.
History
Date User Action Args
2022-04-10 16:06:09adminsetgithub: 37795
2003-01-18 16:43:08kasplatcreate