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 <>
Python-bugs-list mailing list

Reply via email to