On Sat, Feb 9, 2013 at 8:33 PM, Alan Gauld <alan.ga...@btinternet.com> wrote:
>
> Where does exit() come from? Usually its from sys but you
> don't import from sys anywhere...

site.py adds the exit/quit Quitter instances to builtins (2.x
__builtin__). When called they raise SystemExit, like sys.exit does.
Since you can bypass importing site.py with the -S flag, it's better
to use sys.exit.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to