Brett Cannon added the comment:

I totally agree proper notes in the What's New doc need to be in place to 
explain that people need to update.

How about I tweak the __package__ change to continue to prefer __package__ over 
__spec__.parent, but raise an ImportWarning when they differ? It can also fall 
back to __spec__.parent if __package__ isn't defined and simply not worry about 
the lack of __package__? Then we can do an ImportWarning for all of the other 
attributes when we discover a difference so people have time to migrate to 
updating both locations, and then eventually we can invert the priority and 
then after that drop the module attributes.

----------

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

Reply via email to