Terminating Python...

Alex Flinsch aflinsch at njeb.att.com
Thu Jul 15 08:18:31 EDT 1999


Fredrik Lundh wrote:

> in which way is typing "raise SystemExit<Return>" better
> than typing "<Control-D>" (which is documented in the
> Python Tutorial) ?
>

"raise SystemExit" could be embedded in some python code, while a <Control-D>
could not be.
"raise SystemExit" would work on any OS, no need to check if we are running
windows or something else.


The only advantage would be a single consistent method of exiting python.





More information about the Python-list mailing list