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/2017-November/150522.html below:

[Python-Dev] process-wide warning settings

[Python-Dev] process-wide warning settings [Python-Dev] process-wide warning settingsAntoine Pitrou solipsis at pitrou.net
Mon Nov 13 12:27:40 EST 2017
On Mon, 13 Nov 2017 18:19:07 +0100
Victor Stinner <victor.stinner at gmail.com> wrote:
> 
> I really dislike this code since warnings.catch_warnings() is
> process-wide and so impact other threads :-(
> 
> (Maybe Yury's PEP "context variables" would help here? ;-))

They can't really help unless we break the catch_warnings() API to make
it affect some kind of thread-local warning settings (which don't exist
currently).

Regards

Antoine.


More information about the Python-Dev mailing list

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