Python Examples

Page 2 of 6

Browse Python examples

pythonSnippet

sys.exit Sets Process Exit Codes

Return codes travel through sys.exit: usage errors conventionally return 2, validation failures 1, and the value handed to sys.exit becomes the process status.