>>> exit Use exit() or Ctrl-D (i.e. EOF) to exit >>> type(exit) <class 'site.Quitter'> >>> help(exit) Help on Quitter in module site object: class Quitter(__builtin__.object) | Methods defined here: | | __call__(self, code=None) | | __init__(self, name) | | __repr__(self) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dict