Brett Cannon added the comment:

Will that be thread-safe? Plus storing that value in a way that _warnings and 
warnings can read will require something like a single-item list that can be 
mutated in-place.

The other option is to teach warnings to skip anything coming from 
importlib/_bootstrap* unless stacklevel==1 and that frame happens to be in the 
importlib code.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24305>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to