Python equivalent to Perl's warn/confess/die

François Pinard pinard at IRO.UMontreal.CA
Fri May 26 14:37:00 EDT 2000


Paul Prescod <paul at prescod.net> writes:

> sys.stderr.write *is* the warn function.

> "die" is an exception mechanism so I would argue that that is somewhat
> separate.

I use `raise' instead of `die'.  You even get a traceback for free! :-)

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard




More information about the Python-list mailing list