1. 01 May, 2019 1 kayıt (commit)
  2. 24 Nis, 2019 1 kayıt (commit)
    • Joannah Nanjekye's avatar
      bpo-30840: Document relative imports (#12831) · 70bf7136
      Joannah Nanjekye yazdı
      * document relative imports
      
      * :scroll::robot: Added by blurb_it.
      
      * fix indentation error
      
      * remove indentation
      
      * Document relative imports
      
      * Document relative imports
      
      * remove from ...package
      
      * Document relative imports
      
      * remove trailing space
      
      * Document relative imports
      
      * Document relative imports
      70bf7136
  3. 19 Ara, 2018 1 kayıt (commit)
  4. 07 Kas, 2018 1 kayıt (commit)
  5. 26 Eki, 2018 1 kayıt (commit)
  6. 20 Nis, 2018 1 kayıt (commit)
  7. 09 Ara, 2017 1 kayıt (commit)
    • Benjamin Peterson's avatar
      closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575) · 42aa93b8
      Benjamin Peterson yazdı
      Python now supports checking bytecode cache up-to-dateness with a hash of the
      source contents rather than volatile source metadata. See the PEP for details.
      
      While a fairly straightforward idea, quite a lot of code had to be modified due
      to the pervasiveness of pyc implementation details in the codebase. Changes in
      this commit include:
      
      - The core changes to importlib to understand how to read, validate, and
        regenerate hash-based pycs.
      
      - Support for generating hash-based pycs in py_compile and compileall.
      
      - Modifications to our siphash implementation to support passing a custom
        key. We then expose it to importlib through _imp.
      
      - Updates to all places in the interpreter, standard library, and tests that
        manually generate or parse pyc files to grok the new format.
      
      - Support in the interpreter command line code for long options like
        --check-hash-based-pycs.
      
      - Tests and documentation for all of the above.
      42aa93b8
  8. 03 Kas, 2017 1 kayıt (commit)
  9. 17 Eki, 2017 1 kayıt (commit)
  10. 05 Eyl, 2017 1 kayıt (commit)
  11. 30 May, 2017 1 kayıt (commit)
  12. 16 May, 2017 1 kayıt (commit)
  13. 26 Şub, 2017 3 kayıt (commit)
  14. 07 Eyl, 2016 1 kayıt (commit)
  15. 12 Agu, 2016 1 kayıt (commit)
  16. 22 Ock, 2016 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #25791: Warn when __package__ != __spec__.parent. · 849113af
      Brett Cannon yazdı
      In a previous change, __spec__.parent was prioritized over
      __package__. That is a backwards-compatibility break, but we do
      eventually want __spec__ to be the ground truth for module details. So
      this change reverts the change in semantics and instead raises an
      ImportWarning when __package__ != __spec__.parent to give people time
      to adjust to using spec objects.
      849113af
  17. 15 Ock, 2016 1 kayıt (commit)
  18. 04 Ara, 2015 1 kayıt (commit)
  19. 25 Tem, 2015 1 kayıt (commit)
  20. 22 Nis, 2015 1 kayıt (commit)
  21. 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
  22. 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
  23. 21 Kas, 2014 1 kayıt (commit)
  24. 07 Kas, 2014 1 kayıt (commit)
  25. 29 Eki, 2014 2 kayıt (commit)
  26. 29 Mar, 2014 3 kayıt (commit)
  27. 05 Ock, 2014 1 kayıt (commit)
  28. 17 Ara, 2013 1 kayıt (commit)
  29. 24 Kas, 2013 1 kayıt (commit)
  30. 22 Kas, 2013 1 kayıt (commit)
  31. 04 Tem, 2013 1 kayıt (commit)
  32. 13 Haz, 2013 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #15767: Touch up ModuleNotFoundError usage by import. · 8f5ac510
      Brett Cannon yazdı
      Forgot to raise ModuleNotFoundError when None is found in sys.modules.
      This led to introducing the C function PyErr_SetImportErrorSubclass()
      to make setting ModuleNotFoundError easier.
      
      Also updated the reference docs to mention ModuleNotFoundError
      appropriately. Updated the docs for ModuleNotFoundError to mention the
      None in sys.modules case.
      
      Lastly, it was noticed that PyErr_SetImportError() was not setting an
      exception when returning None in one case. That issue is now fixed.
      8f5ac510
  33. 25 May, 2013 1 kayıt (commit)
  34. 04 May, 2013 1 kayıt (commit)
    • Brett Cannon's avatar
      #17115,17116: Have modules initialize the __package__ and __loader__ · 4c14b5de
      Brett Cannon yazdı
      attributes to None.
      
      The long-term goal is for people to be able to rely on these
      attributes existing and checking for None to see if they have been
      set. Since import itself sets these attributes when a loader does not
      the only instances when the attributes are None are from someone
      overloading __import__() and not using a loader or someone creating a
      module from scratch.
      
      This patch also unifies module initialization. Before you could have
      different attributes with default values depending on how the module
      object was created. Now the only way to not get the same default set
      of attributes is to circumvent initialization by calling
      ModuleType.__new__() directly.
      4c14b5de
  35. 28 Mar, 2013 1 kayıt (commit)