Python 2.6 and sys.exit()

H Krishnan hetchkay at
Fri Nov 13 04:27:31 CET 2009


I have the following in
import sys

I now try 'python -i':

In 2.5, the script exits as I would expect.

In 2.6, the following error is printed:

Traceback (most recent call last):
  File "", line 2, in <module>
SystemExit: 0

I couldn't find anything related to this in "What's new in 2.6".

Is there any way I can get 2.6 to behave like 2.5?

Thank you for your help,

H. Krishnan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list