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, ncoghlan, python-dev, superluser
Date 2016-01-16.18:18:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452968325.94.0.0534199112134.issue25791@psf.upfronthosting.co.za>
In-reply-to
Content
As I commented on another issue, I think I'm going to tweak the change to continue to prefer __package__, but raise ImportWarning when it doesn't match __spec__.parent. Once we do that for all attributes we can wait until Python 2.7 is done and then swap priority to __spec__ and raise a DeprecationWarning if __spec__ is missing. That way post-Python 2.7 we can move entirely to a spec-based import system.
History
Date User Action Args
2016-01-16 18:18:45brett.cannonsetrecipients: + brett.cannon, ncoghlan, python-dev, eric.snow, superluser
2016-01-16 18:18:45brett.cannonsetmessageid: <1452968325.94.0.0534199112134.issue25791@psf.upfronthosting.co.za>
2016-01-16 18:18:45brett.cannonlinkissue25791 messages
2016-01-16 18:18:45brett.cannoncreate