delayed sys.exit?

Dr. Phillip M. Feldman pfeldman at verizon.net
Wed Jul 29 16:26:23 EDT 2009


In the attached  http://www.nabble.com/file/p24726902/test.py test.py code,
it appears that additional statements execute after the call to sys.exit(0). 
I'll be grateful if anyone can shed light on why this is happening.  Below
is a copy of some sample I/O.  Note that in the last case I get additional
output after what should be the final error message.

In [126]: run test
Input a string: 1,2
[1, 2]

In [127]: run test
Input a string: 1-3
[1, 2, 3]

In [128]: run test
Input a string: 1,4,5-12
[1, 4, 5, 6, 7, 8, 9, 10, 11, 12]

In [129]: run test
Input a string: 0
ERROR: 0 is invalid; run numbers must be positive.
ERROR: '0' is not a valid run number.


-- 
View this message in context: http://www.nabble.com/delayed-sys.exit--tp24726902p24726902.html
Sent from the Python - python-list mailing list archive at Nabble.com.




More information about the Python-list mailing list