[issue21762] update the import machinery to only use __spec__
Brett Cannon
report at bugs.python.org
Sat Jan 16 21:34:45 EST 2016
Brett Cannon added the comment:
Yeah, which is why it will take a transition to get people to start mucking with __spec__ instead of the module attributes for their legitimate/questionable needs (although the whole `__name__ == '__main__'` idiom means __name__ will never go away while __path__, __package__, __loader__, __file__, and __cached__ could all slowly go away).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21762>
_______________________________________
More information about the Python-bugs-list
mailing list