How to import whole namespace into global symbol table? (newbie)

Peter Otten __peter__ at web.de
Fri Apr 28 01:51:00 EDT 2006


Scott Simpson wrote:

> Lastly, is there an equivalent of Perl's "die" function? I'm writing to
> stderr and dieing above but I'm not quite sure if this is the "correct"
> way.

You can call sys.exit() with a string. Python will print it to stderr and
terminate with a nonzero exit status.

Peter



More information about the Python-list mailing list