1. 07 Tem, 2018 1 kayıt (commit)
    • Benjamin Peterson's avatar
      closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130) · b0274f2c
      Benjamin Peterson yazdı
      * Always return bytes from _HackedGetData.get_data().
      
      Ensure the imp.load_source shim always returns bytes by reopening the file in
      binary mode if needed. Hash-based pycs have to receive the source code in bytes.
      
      It's tempting to change imp.get_suffixes() to always return 'rb' as a mode, but
      that breaks some stdlib tests and likely 3rdparty code, too.
      b0274f2c
  2. 23 Haz, 2017 1 kayıt (commit)
  3. 15 Tem, 2016 1 kayıt (commit)
  4. 16 Eki, 2015 1 kayıt (commit)
  5. 05 Eyl, 2015 1 kayıt (commit)
    • Nick Coghlan's avatar
      Close #24748: Restore imp.load_dynamic compatibility · 9d3c61c8
      Nick Coghlan yazdı
      To resolve a compatibility problem found with py2exe and
      pywin32, imp.load_dynamic() once again ignores previously loaded modules
      to support Python modules replacing themselves with extension modules.
      
      Patch by Petr Viktorin.
      9d3c61c8
  6. 23 May, 2015 1 kayıt (commit)
    • Nick Coghlan's avatar
      PEP 489: Multi-phase extension module initialization · d5cacbb1
      Nick Coghlan yazdı
      Known limitations of the current implementation:
      
      - documentation changes are incomplete
      - there's a reference leak I haven't tracked down yet
      
      The leak is most visible by running:
      
        ./python -m test -R3:3 test_importlib
      
      However, you can also see it by running:
      
        ./python -X showrefcount
      
      Importing the array or _testmultiphase modules, and
      then deleting them from both sys.modules and the local
      namespace shows significant increases in the total
      number of active references each cycle. By contrast,
      with _testcapi (which continues to use single-phase
      initialisation) the global refcounts stabilise after
      a couple of cycles.
      d5cacbb1
  7. 03 May, 2015 1 kayıt (commit)
  8. 14 Nis, 2015 1 kayıt (commit)
  9. 13 Nis, 2015 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #23731: Implement PEP 488. · f299abda
      Brett Cannon yazdı
      The concept of .pyo files no longer exists. Now .pyc files have an
      optional `opt-` tag which specifies if any extra optimizations beyond
      the peepholer were applied.
      f299abda
  10. 27 Mar, 2015 1 kayıt (commit)
  11. 30 May, 2014 1 kayıt (commit)
  12. 23 Kas, 2013 1 kayıt (commit)
  13. 22 Kas, 2013 1 kayıt (commit)
  14. 23 Agu, 2013 1 kayıt (commit)
  15. 15 Agu, 2013 1 kayıt (commit)
  16. 10 Agu, 2013 1 kayıt (commit)
  17. 04 Tem, 2013 1 kayıt (commit)
  18. 16 Haz, 2013 1 kayıt (commit)
  19. 15 Haz, 2013 3 kayıt (commit)
  20. 14 Haz, 2013 3 kayıt (commit)
  21. 03 May, 2013 1 kayıt (commit)
  22. 28 Nis, 2013 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #17358: imp.load_source() and load_compiled() should now return · 5a4c233a
      Brett Cannon yazdı
      modules which will typically work when reloaded.
      
      A hack is used to support these functions as their API allowed them to
      pass in a file object but then operate as if import had loaded them.
      Unfortunately the hack kept a reference around for the file object
      passed in which would be unusable on reload since it had been closed.
      The solution is to simply use the hack for the initial load but then a
      proper loader on the module so that imp.reload() at least has a chance
      to work.
      5a4c233a
  23. 17 Mar, 2013 1 kayıt (commit)
  24. 31 Agu, 2012 2 kayıt (commit)
  25. 10 Agu, 2012 1 kayıt (commit)
  26. 13 Tem, 2012 1 kayıt (commit)
    • Brett Cannon's avatar
      Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() use · a6473f9c
      Brett Cannon yazdı
      Lib/imp.py for imp.source_from_cache() instead of its own C version.
      
      Also change PyImport_ExecCodeModuleObject() to not infer the source
      path from the bytecode path like
      PyImport_ExecCodeModuleWithPathnames() does. This makes the function
      less magical.
      
      This also has the side-effect of removing all uses of MAXPATHLEN in
      Python/import.c which can cause failures on really long filenames.
      a6473f9c
  27. 09 Tem, 2012 3 kayıt (commit)
  28. 02 Tem, 2012 1 kayıt (commit)
  29. 15 Haz, 2012 1 kayıt (commit)
  30. 11 May, 2012 2 kayıt (commit)
    • Brett Cannon's avatar
      Issue #13959: Have · c049952d
      Brett Cannon yazdı
      importlib.abc.FileLoader.load_module()/get_filename() and
      importlib.machinery.ExtensionFileLoader.load_module() have their
      single argument be optional as the loader's constructor has all the
      ncessary information.
      
      This allows for the deprecation of
      imp.load_source()/load_compile()/load_package().
      c049952d
    • Brett Cannon's avatar
      Issue #13959: Deprecate imp.get_suffixes() for new attributes on · cb66eb0d
      Brett Cannon yazdı
      importlib.machinery that provide the suffix details for import.
      The attributes were not put on imp so as to compartmentalize
      everything importlib needs for setting up imports in
      importlib.machinery.
      
      This also led to an indirect deprecation of inspect.getmoduleinfo() as
      it directly returned imp.get_suffix's returned tuple which no longer
      makes sense.
      cb66eb0d
  31. 05 May, 2012 1 kayıt (commit)
  32. 04 May, 2012 1 kayıt (commit)