]> granicus.if.org Git - python/commit
Issue #24492: make sure that ``from ... import ...` raises an
authorBrett Cannon <brett@python.org>
Wed, 12 Aug 2015 01:01:31 +0000 (18:01 -0700)
committerBrett Cannon <brett@python.org>
Wed, 12 Aug 2015 01:01:31 +0000 (18:01 -0700)
commit3008bc0f4abb3f71433b1fcd97cc801da0a866cc
tree2eefd4a3a25a4e0234225452541254715ada79e2
parentbb8a52a8d37bd8e273eddd050f91e7d423bff3c9
Issue #24492: make sure that ``from ... import ...` raises an
ImportError if __name__ is not defined on a package.

Thanks to Armin Rigo for the bug report and diagnosing the cause.
Lib/test/test_import/__init__.py
Misc/NEWS
Python/ceval.c