Skip to content

Instantly share code, notes, and snippets.

@ncoghlan
Created September 10, 2012 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ncoghlan/3688100 to your computer and use it in GitHub Desktop.
Save ncoghlan/3688100 to your computer and use it in GitHub Desktop.
Python prompt exit commands
$ python
Python 2.6.6 (r266:84292, May 1 2012, 13:52:17)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> exit()
$ python
Python 2.6.6 (r266:84292, May 1 2012, 13:52:17)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
$
Copy link

ghost commented Jul 23, 2019

This actually helped me out even though this was 7 years ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment