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 brett.cannon, eric.snow, kdart, ncoghlan
Date 2016-01-28.20:30:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454013036.24.0.585719322242.issue26186@psf.upfronthosting.co.za>
In-reply-to
Content
I think I'm liking the following approach:

  if __debug__:
    hopefully_None = loader.create_module(spec)
    if hopefully_None is not None:
        warnings.warn("watch out!", ImportWarning)
History
Date User Action Args
2016-01-28 20:30:36brett.cannonsetrecipients: + brett.cannon, ncoghlan, kdart, eric.snow
2016-01-28 20:30:36brett.cannonsetmessageid: <1454013036.24.0.585719322242.issue26186@psf.upfronthosting.co.za>
2016-01-28 20:30:36brett.cannonlinkissue26186 messages
2016-01-28 20:30:36brett.cannoncreate