[Python-Dev] process-wide warning settings
Antoine 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