1. 07 Eyl, 2016 1 kayıt (commit)
  2. 09 Ock, 2015 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #23014: Make importlib.abc.Loader.create_module() required when · 02d84540
      Brett Cannon yazdı
      importlib.abc.Loader.exec_module() is also defined.
      
      Before this change, create_module() was optional **and** could return
      None to trigger default semantics. This change now reduces the
      options for choosing default semantics to one and in the most
      backporting-friendly way (define create_module() to return None).
      02d84540
  3. 16 May, 2014 1 kayıt (commit)
  4. 09 May, 2014 1 kayıt (commit)
  5. 29 Kas, 2013 1 kayıt (commit)
  6. 08 Kas, 2013 1 kayıt (commit)
  7. 04 Tem, 2013 2 kayıt (commit)
  8. 16 Haz, 2013 1 kayıt (commit)
  9. 15 Haz, 2013 1 kayıt (commit)
  10. 13 Haz, 2013 1 kayıt (commit)
  11. 12 Haz, 2013 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #15767: Introduce ModuleNotFoundError, a subclass of · b1611e27
      Brett Cannon yazdı
      ImportError.
      
      The exception is raised by import when a module could not be found.
      Technically this is defined as no viable loader could be found for the
      specified module. This includes ``from ... import`` statements so that
      the module usage is consistent for all situations where import
      couldn't find what was requested.
      
      This should allow for the common idiom of::
      
        try:
          import something
        except ImportError:
          pass
      
      to be updated to using ModuleNotFoundError and not accidentally mask
      ImportError messages that should propagate (e.g. issues with a
      loader).
      
      This work was driven by the fact that the ``from ... import``
      statement needed to be able to tell the difference between an
      ImportError that simply couldn't find a module (and thus silence the
      exception so that ceval can raise it) and an ImportError that
      represented an actual problem.
      b1611e27
  12. 24 Agu, 2012 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #15316: Let exceptions raised during imports triggered by the · 12c6bda4
      Brett Cannon yazdı
      fromlist of __import__ propagate.
      
      The problem previously was that if something listed in fromlist didn't
      exist then that's okay. The fix for that was too broad in terms of
      catching ImportError.
      
      The trick with the solution to this issue is that the proper
      refactoring of import thanks to importlib doesn't allow for a way to
      distinguish (portably) between an ImportError because finders couldn't
      find a loader, or a loader raised the exception. In Python 3.4 the
      hope is to introduce a new exception (e.g. ModuleNotFound) to make it
      clean to differentiate why ImportError was raised.
      12c6bda4
  13. 20 Tem, 2012 1 kayıt (commit)
  14. 16 Şub, 2012 1 kayıt (commit)
  15. 30 Agu, 2009 1 kayıt (commit)