Removing a warnings filter?

Torsten Bronger bronger at physik.rwth-aachen.de
Fri Jun 3 10:38:53 EDT 2005


Hallöchen!

When I add a warning filter with warnings.filterwarnings, how can I
get rid of it?  I've read about resetwarnings(), but it removes all
filters, even those that I didn't install in a certain function.

In particular, I want to transform one special form of warning in an
exception to keep track of it more easily.  However, before leaving
my function I want to restore the old status.

How can this be achieved?  Thank you!

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus



More information about the Python-list mailing list