1. 20 Kas, 2012 3 kayıt (commit)
  2. 20 Tem, 2012 1 kayıt (commit)
  3. 28 Haz, 2012 1 kayıt (commit)
  4. 27 Haz, 2012 1 kayıt (commit)
  5. 27 Nis, 2012 1 kayıt (commit)
  6. 26 Nis, 2012 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #14605: Make explicit the entries on sys.path_hooks that used to · e0d88a17
      Brett Cannon yazdı
      be implicit.
      
      Added a warning for when sys.path_hooks is found to be empty. Also
      changed the meaning of None in sys.path_importer_cache to represent
      trying sys.path_hooks again (an interpretation of previous semantics).
      Also added a warning for when None was found.
      
      The long-term goal is for None in sys.path_importer_cache to represent
      the same as imp.NullImporter: no finder found for that sys.path entry.
      e0d88a17
  7. 18 Nis, 2012 1 kayıt (commit)
  8. 14 Nis, 2012 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #2377: Make importlib the implementation of __import__(). · fd074155
      Brett Cannon yazdı
      importlib._bootstrap is now frozen into Python/importlib.h and stored
      as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen
      code along with sys and imp and then uses _frozen_importlib._install()
      to set builtins.__import__() w/ _frozen_importlib.__import__().
      fd074155
  9. 20 Şub, 2012 1 kayıt (commit)
  10. 16 Şub, 2012 1 kayıt (commit)
  11. 08 Şub, 2012 1 kayıt (commit)
  12. 03 Tem, 2010 1 kayıt (commit)
    • Brett Cannon's avatar
      Make importlib.abc.SourceLoader the primary mechanism for importlib. · 61b14251
      Brett Cannon yazdı
      This required moving the class from importlib/abc.py into
      importlib/_bootstrap.py and jiggering some code to work better with the class.
      This included changing how the file finder worked to better meet import
      semantics. This also led to fixing importlib to handle the empty string from
      sys.path as import currently does (and making me wish we didn't support that
      instead just required people to insert '.' instead to represent cwd).
      
      It also required making the new set_data abstractmethod create
      any needed subdirectories implicitly thanks to __pycache__ (it was either this
      or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir
      method or have set_data with no data arg mean to create a directory).
      
      Lastly, as an optimization the file loaders cache the file path where the
      finder found something to use for loading (this is thanks to having a
      sourceless loader separate from the source loader to simplify the code and
      cut out stat calls).
      Unfortunately test_runpy assumed a loader would always work for a module, even
      if you changed from underneath it what it was expected to work with. By simply
      dropping the previous loader in test_runpy so the proper loader can be returned
      by the finder fixed the failure.
      
      At this point importlib deviates from import on two points:
      
      1. The exception raised when trying to import a file is different (import does
      an explicit file check to print a special message, importlib just says the path
      cannot be imported as if it was just some module name).
      
      2. the co_filename on a code object is not being set to where bytecode was
      actually loaded from instead of where the marshalled code object originally
      came from (a solution for this has already been agreed upon on python-dev but has
      not been implemented yet; issue8611).
      61b14251
  13. 13 Agu, 2009 1 kayıt (commit)
  14. 01 Tem, 2009 1 kayıt (commit)
  15. 30 Haz, 2009 1 kayıt (commit)
  16. 30 Mar, 2009 1 kayıt (commit)
  17. 21 Şub, 2009 1 kayıt (commit)
    • Brett Cannon's avatar
      Do some cleanup in importlib: · 2dee597e
      Brett Cannon yazdı
      + Ditch using arguments to super().
      + Ditch subclassing from object directly.
      + Move directory check out of chaining path hook to file path hook/finder.
      + Rename some classes to better reflect they are finders, not importers.
      2dee597e
  18. 15 Şub, 2009 1 kayıt (commit)
  19. 07 Şub, 2009 1 kayıt (commit)
  20. 06 Şub, 2009 1 kayıt (commit)
  21. 05 Şub, 2009 3 kayıt (commit)
  22. 01 Şub, 2009 2 kayıt (commit)
  23. 18 Ock, 2009 1 kayıt (commit)