[Python-Dev] PEP282 and the warnings framework
Wed, 15 May 2002 18:32:11 +0200
Guido van Rossum wrote:
>>while merging the two APIs is probably not right
>>the warning-module might well be a 'user' of the
> Good point. You can easily do this: the function
> warnings.showwarning() is a hook that you are allowed to replace.
Yes, but to configure the filter for warnings you
have to use warnings.filterwarnings() with its API
and for filtering logging you're using a different
API. Conceptually they are doing the same, so they
should have similar APIs.