[Python-ideas] Deprecation utilities for the warnings module
boxed at killingar.net
Sat Sep 15 01:55:24 EDT 2018
> If correctly understood your concern, it's about usage of stdlib's *Warning classes directly
> that makes all warnings coming from different libraries indistinguishable.
That was my concern yes.
> I think that's not the case, since warnings.filterwarnings allows
> to specify custom filter using a regular expression to match module names.
And what does that match against? The module name of the exception type right?
> Therefore it's not redundant to subclass *Warning for namespacing alone.
Not redundant? You mean you must subclass? In that case my concern stands.
More information about the Python-ideas