Python equivalent to Perl's warn/confess/die

Andy Lester andy at petdance.com
Wed May 24 16:39:56 CEST 2000


> You could write your own.  Put this in a file called warn.py 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.

Thanks,
Andy

--
Andy Lester, andy at petdance.com, http://www.petdance.com
    "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