Python equivalent to Perl's warn/confess/die

Courageous jkraska1 at
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".


More information about the Python-list mailing list