]> granicus.if.org Git - python/commit
Issue #25791: Raise an ImportWarning when __spec__ or __package__ are
authorBrett Cannon <brett@python.org>
Fri, 15 Jan 2016 21:33:03 +0000 (13:33 -0800)
committerBrett Cannon <brett@python.org>
Fri, 15 Jan 2016 21:33:03 +0000 (13:33 -0800)
commit63b8505281f9c26f7304b3e00d658b429b862d5b
tree07a4d20ed327d8493aa7105bec9ca1d598cc6b7c
parent43cfd8240c274b2f4cf0588f3defae83e7379a55
Issue #25791: Raise an ImportWarning when __spec__ or __package__ are
not defined for a relative import.

This is the start of work to try and clean up import semantics to rely
more on a module's spec than on the myriad attributes that get set on
a module. Thanks to Rose Ames for the patch.
Doc/reference/import.rst
Doc/whatsnew/3.6.rst
Lib/importlib/_bootstrap.py
Lib/test/test_importlib/import_/test___package__.py
Misc/NEWS
Python/import.c
Python/importlib.h