Brett Cannon added the comment:

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.

----------
status: closed -> open

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

Reply via email to