Python equivalent to Perl's warn/confess/die

Courageous jkraska1 at san.rr.com
Wed May 24 13:27:34 EDT 2000


> But is there a module somewhere that encapsulates that so I don't
> explicitly send it to stderr?

You can set the stdout to *be* the standard error. I don't
know about you, but I don't want any unbuffered IO anyway.
Doing this "print" *becomes* your "warn".


C/



More information about the Python-list mailing list