• Serhiy Storchaka's avatar
    [3.5] Backport bpo-30876 (GH-2639), bpo-18018 and bpo-26367. (#2677) · c824cc84
    Serhiy Storchaka yazdı
    * 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 8a9cd20e)
    
    * 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.
    c824cc84
importlib.h 102 KB