Skip to content
Permalink
main

Commits on Sep 17, 2021

  1. bpo-45183: don't raise an exception when calling zipimport.zipimporte…

    …r.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435)
    
    This can occur when the zip file gets deleted, you call zipimport.zipimporter.invalidate_cache(), and then try to use zipimport.zipimporter.find_spec() (i.e. you left the zip file path on sys.path).
    brettcannon committed Sep 17, 2021
  2. bpo-44640: Improve punctuation consistency in isinstance/issubclass e…

    …rror messages (GH-27144)
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    wyz23x2 and ambv committed Sep 17, 2021
  3. [doc] Clarify exception in multiprocessing.cpu_count (GH-23660)

    Previous wording didn't explain the slightly unintuitive behavior.
    
    Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
    eamanu and Fidget-Spinner committed Sep 17, 2021
  4. bpo-45116: Py_DEBUG ignores Py_ALWAYS_INLINE (GH-28419)

    If the Py_DEBUG macro is defined, the Py_ALWAYS_INLINE macro does
    nothing.
    vstinner committed Sep 17, 2021
  5. bpo-45020: Fix build out of source tree (GH-28410)

    * Makefile.pre.in: Add $(srcdir) when needed, remove it when it was
      used by mistake.
    * freeze_modules.py tool uses ./Programs/_freeze_module if the
      executable doesn't exist in the source tree.
    vstinner committed Sep 17, 2021
  6. bpo-45231: update_file.py preserves end of line (GH-28411)

    The update_file.py tool now preserves the end of line of the updated
    file. Fix the "make regen-frozen" command: it no longer changes the
    end of line of PCbuild/ files on Unix. Git changes the end of line
    depending on the platform.
    vstinner committed Sep 17, 2021
  7. Remove compatibility check for Python versions below 2.2. (GH-28314)

    `os.path.realpath()` already exists in all our supported Python versions.
    There's no longer a need to check if it exists or not.
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    thedrow and ambv committed Sep 17, 2021
  8. bpo-45212: Add a comment for time.sleep() in tests (GH-28414)

    Co-authored-by: Victor Stinner <vstinner@python.org>
    serhiy-storchaka and vstinner committed Sep 17, 2021
  9. bpo-45116: Add the Py_ALWAYS_INLINE macro (GH-28390)

    Add the Py_ALWAYS_INLINE macro to ask the compiler to always inline a
    static inline function. The compiler can ignore it and decides to not
    inline the function.
    vstinner committed Sep 17, 2021
  10. bpo-45217: adds note that allow_no_value in configparser is optio…

    …nal (GH-28396)
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    sobolevn and ambv committed Sep 17, 2021
  11. bpo-45107: Make LOAD_METHOD_CLASS safer and faster, clean up comments (

    …GH-28177)
    
    * Improve comments
    
    * Check cls is a type, remove dict calculation
    Fidget-Spinner committed Sep 17, 2021
  12. bpo-45162: Remove many old deprecated unittest features (GH-28268)

    * "fail*" and "assert*" aliases of TestCase methods.
    * Broken from start TestCase method assertDictContainsSubset().
    * Ignored TestLoader.loadTestsFromModule() parameter use_load_tests.
    * Old alias _TextTestResult of TextTestResult.
    serhiy-storchaka committed Sep 17, 2021
  13. bpo-45187: Collect test_socket tests using unittest (GH-28317)

    Previously, test classes ISOTPTest, J1939Test, BasicUDPLITETest and
    UDPLITETimeoutTest were not included in the list of tests and
    were not run by regrtest.
    serhiy-storchaka committed Sep 17, 2021
  14. bpo-45203: fix compiler warnings (GH-28357)

    Co-authored-by: Mark Shannon <mark@hotpy.org>
    Fidget-Spinner and markshannon committed Sep 17, 2021

Commits on Sep 16, 2021

  1. bpo-45020: Drop the frozen .h files from the repo. (gh-28392)

    The main advantage is that the files will no longer show up in diffs and PRs. That means, for a PR, the number of files / lines changed will more clearly reflect the actual change.  (This is essentially an un-revert of gh-28375.)
    
    https://bugs.python.org/issue45020
    ericsnowcurrently committed Sep 16, 2021
  2. bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-2…

    …8361)
    
    tearDown() is not called if setUp() raises an exception
    (including SkipTest). addCleanup() should be used for guaranteed
    execution of the cleanup code.
    serhiy-storchaka committed Sep 16, 2021
  3. bpo-45020: Revert "Drop the frozen .h files from the repo." (gh-28380)

    gh-28375 broke one of the buildbots. Until I figure out why, I'm rolling the change back.
    
    https://bugs.python.org/issue45020
    ericsnowcurrently committed Sep 16, 2021
  4. bpo-45155 : Default arguments for int.to_bytes(length=1, byteorder=sy…

    …s.byteorder) (#28265)
    
    Add default arguments for int.to_bytes() and int.from_bytes()
    
    Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
    warsaw and brandtbucher committed Sep 16, 2021
  5. bpo-45020: Drop the frozen .h files from the repo. (gh-28375)

    The main advantage is that the files will no longer show up in diffs and PRs. That means, for a PR, the number of files / lines changed will more clearly reflect the actual change.
    
    https://bugs.python.org/issue45020
    ericsnowcurrently committed Sep 16, 2021
Older