[Python-checkins] [python/cpython] 8a9cd2: bpo-30876: Relative import from unloaded package n...
GitHub
noreply at github.com
Tue Jul 11 23:50:04 EDT 2017
Branch: refs/heads/master
Home: https://github.com/python/cpython
Commit: 8a9cd20edca7d01b68292036029ae3735ce65edd
https://github.com/python/cpython/commit/8a9cd20edca7d01b68292036029ae3735ce65edd
Author: Serhiy Storchaka <storchaka at gmail.com>
Date: 2017-07-12 (Wed, 12 Jul 2017)
Changed paths:
M Lib/importlib/_bootstrap.py
M Lib/test/test_import/__init__.py
A Lib/test/test_import/data/package2/submodule1.py
A Lib/test/test_import/data/package2/submodule2.py
M Lib/test/test_importlib/import_/test___package__.py
A Misc/NEWS.d/next/Core and Builtins/2017-07-11-06-31-32.bpo-30876.x35jZX.rst
M Python/import.c
M Python/importlib.h
Log Message:
-----------
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.
More information about the Python-checkins
mailing list