exit code of a script that raises an Exception?

thequietcenter at gmail.com thequietcenter at gmail.com
Tue Sep 9 15:55:34 CEST 2014

Hello, after looking at the docs for Exception:

I do not see any information on the guaranteed exit code a script that exits because Python threw an exception.

I wonder if all exceptions throw the exact same non-zero exit code, or whether a specific exit code is assigned to each exception uniquely. Or whether the exit code behavior is undefined (especially since it appears to be undocumented).


More information about the Python-list mailing list