Python exit codes
问题 Where can I find information about meaning of exit codes of "python" process on Unix? For instance, if I do "python thisfiledoesntexist.py", I get exit code 2 Summary: from errno import errorcode print errorcode[2] 回答1: As stated, mostly the error codes come from the executed script and sys.exit() . The example with a non existing file as argument to the interpreter fall in a different category. Though its stated nowhere I would guess, that these exit codes are the "standard" linux error