On this page
quit
Prev: property | Up: __builtins__ | Next: range
Rel: True, False, None, Ellipsis, NotImplemented
Ref: docs.python.org — quit
Tags: #public #python3 #builtins
Import & Availability
# Built-in (available globally without import)
from builtins import quit
Overview & Signature
quit(code=None)
Python built-in quit.
Usage
assert callable(quit)
Gotchas
- Interactive REPL helper only: Always use
sys.exit(code)in scripts and applications.
REPL Inspect
help(quit)
Linked from
Related notes
- tuts/python3/__builtins__/__builtins__ Linked here; links to this page; shared tags: #builtins
- tuts/python3/__builtins__/property Linked here; links to this page; shared tags: #builtins
- tuts/python3/__builtins__/range Linked here; links to this page; shared tags: #builtins
- tuts/python3/__builtins__ links to this page; shared tags: #builtins
- tuts/python3/__builtins__/Ellipsis Linked here; shared tags: #builtins
- tuts/python3/__builtins__/False Linked here; shared tags: #builtins
- tuts/python3/__builtins__/None Linked here; shared tags: #builtins
- tuts/python3/__builtins__/NotImplemented Linked here; shared tags: #builtins
- tuts/python3/__builtins__/True Linked here; shared tags: #builtins
- tuts/c/builtins shared tags: #builtins