Python equivalent to Perl's warn/confess/die

Andy Lester andy at
Wed May 24 10:39:56 EDT 2000

> You could write your own.  Put this in a file called which lives
> somewhere in your PYTHONPATH:

Well, yah, I could write my own of EVERYTHING!  That's what I was trying
to avoid. :-)

I really like the semantics of warn and die in Perl, so I think I'm just
going to have make a module out of it.


Andy Lester, andy at,
    "Inflammable material is planted in my head
     It's a suspect device that's left two thousand dead."
    "Hey, is this the new Green Day?"

More information about the Python-list mailing list