Logo

Programming-Idioms

History of Idiom 87 > diff from v11 to v12

Edit summary for version 12 by :
New Python implementation by user [henkidefix]

Version 11

2015-11-30, 12:37:31

Version 12

2015-12-25, 11:48:17

Idiom #87 Stop program

Exit immediatly.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

Idiom #87 Stop program

Exit immediatly.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

Imports
import sys
Code
sys.exit(1)
Doc URL
https://docs.python.org/3/library/sys.html?highlight=exit#sys.exit