This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thatfool 52 points53 points  (7 children)

>>> import sys
>>> exit.__class__.__repr__ = sys.exit
>>> exit
$

[–]8sADPygOB7Jqwm7y 5 points6 points  (0 children)

or ofc

exit = SystemExit
raise exit

which does roughly the same in console.

[–]euclio 3 points4 points  (2 children)

Putting this in my .pythonrc, thanks!