Python equivalent to Perl's warn/confess/die

Vetle Roeim vetler at news.ifi.uio.no
Wed May 24 12:15:06 EDT 2000


* Andy Lester
> > 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.

remember to share it with us! :-)


vr



More information about the Python-list mailing list