bpo-30876: Relative import from unloaded package now reimports the package by serhiy-storchaka · Pull Request #2639 · python/cpython

@serhiy-storchaka

…ckage

instead of failing with SystemError.

Relative import from non-package now fails with ImportError rather than
SystemError.

ncoghlan

brettcannon

brettcannon

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request

Jul 12, 2017
…the package (pythonGH-2639)

instead of failing with SystemError.

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

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request

Jul 12, 2017
…the package (pythonGH-2639)

instead of failing with SystemError.

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

serhiy-storchaka added a commit that referenced this pull request

Jul 16, 2017
…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 8a9cd20)

serhiy-storchaka added a commit that referenced this pull request

Jul 23, 2017
* bpo-30876: Relative import from unloaded package now reimports the package
instead of failing with SystemError.

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

* bpo-18018: Import raises ImportError instead of SystemError if a relative
import is attempted without a known parent package.

* bpo-26367: importlib.__init__() raises ImportError like
builtins.__import__() when ``level`` is specified but without an accompanying
package specified.