]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30876: Relative import from unloaded package now reimports the package (#2639)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 12 Jul 2017 03:50:03 +0000 (06:50 +0300)
committerGitHub <noreply@github.com>
Wed, 12 Jul 2017 03:50:03 +0000 (06:50 +0300)
commit8a9cd20edca7d01b68292036029ae3735ce65edd
treef4df7b29b7d32eb5a860e325f2114beea561e57b
parent6d13b22e3ab262c6b1f068259aebd705e7da316c
bpo-30876: Relative import from unloaded package now reimports the package (#2639)

instead of failing with SystemError.

Relative import from non-package now fails with ImportError rather than
SystemError.
Lib/importlib/_bootstrap.py
Lib/test/test_import/__init__.py
Lib/test/test_import/data/package2/submodule1.py [new file with mode: 0644]
Lib/test/test_import/data/package2/submodule2.py [new file with mode: 0644]
Lib/test/test_importlib/import_/test___package__.py
Misc/NEWS.d/next/Core and Builtins/2017-07-11-06-31-32.bpo-30876.x35jZX.rst [new file with mode: 0644]
Python/import.c
Python/importlib.h