This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients Arfrever, barry, berker.peksag, brett.cannon, eric.snow, jwilk, larry, ncoghlan, njs, serhiy.storchaka, takluyver
Date 2015-08-14.19:31:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439580686.48.0.483209831849.issue24305@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-08-14 19:31:26brett.cannonsetrecipients: + brett.cannon, barry, ncoghlan, larry, jwilk, Arfrever, njs, eric.snow, takluyver, berker.peksag, serhiy.storchaka
2015-08-14 19:31:26brett.cannonsetmessageid: <1439580686.48.0.483209831849.issue24305@psf.upfronthosting.co.za>
2015-08-14 19:31:26brett.cannonlinkissue24305 messages
2015-08-14 19:31:26brett.cannoncreate