On Mon, 13 Nov 2017 18:19:07 +0100
Victor Stinner <victor.stin...@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.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to