[Python-Dev] DRAFT: python-dev Summary for 2005-12-16 through2005-12-31 (original) (raw)

Fredrik Lundh fredrik at pythonware.com
Fri Jan 13 11:04:35 CET 2006


Tony Meyer wrote:

Fredrik Lundh kicked off a surprisingly long thread when he proposed that typing "quit" or "exit" in the interactive prompt actually exit (i.e. raises SystemError)

SystemExit

>>> def exit(): ... print "bye"

>>> # what is it? >>> exit $ oops! (However, one could simply type "repr(exit)" in this case).

too late:

>>> exit
$ repr(exit)
bash: syntax error near unexpected token `repr(exit)'


More information about the Python-Dev mailing list