[Python-checkins] [python/cpython] 28343e: [3.6] bpo-30876: Relative import from unloaded pac...

GitHub noreply at github.com
Sun Jul 16 00:44:26 EDT 2017


  Branch: refs/heads/3.6
  Home:   https://github.com/python/cpython
  Commit: 28343e3392ca7b1ec7151f68d4d92c90efb91e50
      https://github.com/python/cpython/commit/28343e3392ca7b1ec7151f68d4d92c90efb91e50
  Author: Serhiy Storchaka <storchaka at gmail.com>
  Date:   2017-07-16 (Sun, 16 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:
  -----------
  [3.6] bpo-30876: Relative import from unloaded package now reimports the package (GH-2639) (#2676)

instead of failing with SystemError.

Relative import from non-package now fails with ImportError rather than
SystemError.
(cherry picked from commit 8a9cd20edca7d01b68292036029ae3735ce65edd)




More information about the Python-checkins mailing list