A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-May/024111.html below:

[Python-Dev] PEP282 and the warnings framework

[Python-Dev] PEP282 and the warnings framework [Python-Dev] PEP282 and the warnings frameworkWalter Dörwald walter@livinglogic.de
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 
>>logging-module.
> 
> 
> 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.

Bye,
    Walter Dörwald





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4