Skip to content
Permalink
Branch: master
Commits on May 30, 2020
  1. bpo-40829: Add a what's new entry about deprecation of shuffle's rand…

    isidentical committed May 30, 2020
    …om parameter (GH-20541)
  2. bpo-40061: Fix a possible refleak in _asynciomodule.c (GH-19748)

    ZackerySpytz committed May 30, 2020
    tup should be decrefed in the unlikely event of a PyList_New()
    failure.
  3. closes bpo-29017: Update the bindings for Qt information with PySide2 (…

    sgaist committed May 30, 2020
    …GH-20149)
    
    Reference to PySide has been removed has it is for Qt 4, which has reached end of life.
Commits on May 29, 2020
  1. bpo-39885: Make IDLE context menu cut and copy work again (GH-18951)

    terryjreedy committed May 29, 2020
    Leave selection when right click within.  This exception to clearing selections when right-clicking was omitted from the previous commit, 4ca060d.  I did not realize that this completely disabled the context menu entries, and  I should have merged a minimal fix immediately.  An automated test should follow.
  2. bpo-29882: Add an efficient popcount method for integers (#771)

    niklasf and mdickinson committed May 29, 2020
    * bpo-29882: Add an efficient popcount method for integers
    
    * Update 'sign bit' and versionadded in docs
    
    * Add entry to whatsnew document
    
    * Doc: use positive example, mention population count
    
    * Minor cleanups of the core code
    
    * Move popcount_digit closer to where it's used
    
    * Use z instead of self after conversion
    
    * Add 'absolute value' and 'population count' to docstring
    
    * Fix clinic error about missing summary line
    
    * Ensure popcount_digit is portable with 64-bit ints
    
    Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
  3. Further de-linting of zoneinfo module (#20499)

    pganssle committed May 29, 2020
    * Remove unused imports in zoneinfo
    
    * Remove unused variables in zoneinfo
    
    * Remove else after raise
  4. bpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435

    mdickinson committed May 29, 2020
    )
    
    * Fix failure of _Py_dg_dtoa to remove trailing zeros
    
    * Add regression test and news entry
    
    * Add explanation about why it's safe to strip trailing zeros
    
    * Make code safer, clean up comments, add change note at top of file
    
    * Nitpick: avoid implicit int-to-float conversion in tests
  5. Indicate that abs() method accept argument that implement __abs__(), …

    Windsooon committed May 29, 2020
    …just like call() method in the docs (GH-20509)
  6. bpo-39040: Fix parsing of email mime headers with whitespace between …

    maxking committed May 29, 2020
    …encoded-words. (gh-17620)
    
    * bpo-39040: Fix parsing of email headers with encoded-words inside a quoted string.
    
    It is fairly common to find malformed mime headers (especially content-disposition
    headers) where the parameter values, instead of being encoded to RFC
    standards, are "encoded" by doing RFC 2047 "encoded word" encoding, and
    then enclosing the whole thing in quotes.  The processing of these malformed
    headers was incorrectly leaving the spaces between encoded words in the decoded
    text (whitespace between adjacent encoded words is supposed to be stripped on
    decoding).  This changeset fixes the encoded word processing inside quoted strings
    (bare-quoted-string) to do correct RFC 2047 decoding by stripping that
    whitespace.
Commits on May 28, 2020
  1. bpo-40784: Fix sqlite3 deterministic test (GH-20448)

    erlend-aasland committed May 28, 2020
  2. Note the output ordering of combinatoric functions (GH-19732)

    ruaridhw committed May 28, 2020
  3. bpo-40474: Updated coverage.yml to better report coverage stats (#19851)

    lrjball committed May 28, 2020
    Currently modules which are imported early are misreported in coverage. A fix is documented in the devguide, but the fix wasn't being used in CI.
  4. bpo-40806: Clarify that itertools.product immediately consumes its in…

    stsouko committed May 28, 2020
    …pt (GH-20492)
  5. bpo-1294959: Try to clarify the meaning of platlibdir (GH-20332)

    mgorny committed May 28, 2020
    Try to make the meaning of platlibdir clear.  The previous wording could
    be misinterpreted to suggest that it will be used to find all shared
    libraries on the system, and not just Python extensions.  Furthermore,
    it was unclear whether it affects third-party (site-packages) extensions
    or not.  The new wording tries to make its dual purpose clear,
    and provide the additional example of extensions in site-packages.
  6. bpo-37878: PyThreadState_DeleteCurrent() was not removed (GH-20489)

    vstinner committed May 28, 2020
    Update What's New in Python 3.9.
    
    PyThreadState_DeleteCurrent was not removed, but excluded from the limited C API.
  7. bpo-40777: Initialize PyDateTime_IsoCalendarDateType.tp_base at run-t…

    encukou committed May 28, 2020
    …ime (GH-20493)
    
    Recent changes to _datetimemodule broke compilation on mingw; see the comments in this change for details.
    
    FWIW, @corona10: this issue is why `PyType_FromModuleAndSpec` & friends take the `bases` argument at run time.
  8. bpo-40755: Add missing multiset operations to Counter() (GH-20339)

    rhettinger committed May 28, 2020
  9. bpo-25920: Remove socket.getaddrinfo() lock on macOS (GH-20177)

    vstinner committed May 28, 2020
    On macOS, socket.getaddrinfo() no longer uses an internal lock to
    prevent race conditions when calling getaddrinfo(). getaddrinfo is
    thread-safe is macOS 10.5, whereas Python 3.9 requires macOS 10.6 or
    newer.
    
    The lock was also used on FreeBSD older than 5.3, OpenBSD older than
    201311 and NetBSD older than 4.
  10. bpo-40275: Fix test.support.threading_helper (GH-20488)

    vstinner committed May 28, 2020
    * Add missing sys import
    * Get verbose and gc_collect() from test.support
    * Remove unused starttime variable.
    
    Issues spotted by pyflakes.
  11. bpo-40275: Remove test.support.TESTFN_ENCODING (GH-20482)

    shihai1991 committed May 28, 2020
    Replace test.support.TESTFN_ENCODING with sys.getfilesystemencoding().
  12. bpo-30064: Fix unstable asyncio "racing" socket tests (GH-20485)

    vstinner committed May 28, 2020
    Skip new "racing" socket tests which fail randomly until someone fix
    them, to ease analysis of buildbot failures (skip tests which are
    known to be broken/unstable).
  13. Revert "Upgrade bundled versions of pip & setuptools (#16782)" (GH-20484

    vstinner committed May 28, 2020
    )
    
    This reverts commit feb0846.
  14. bpo-40792: Make the result of PyNumber_Index() always having exact ty…

    serhiy-storchaka committed May 28, 2020
    …pe int. (GH-20443)
    
    Previously, the result could have been an instance of a subclass of int.
    
    Also revert bpo-26202 and make attributes start, stop and step of the range
    object having exact type int.
    
    Add private function _PyNumber_Index() which preserves the old behavior
    of PyNumber_Index() for performance to use it in the conversion functions
    like PyLong_AsLong().
  15. Improve IO tutorial's "Old string formatting" section (GH-16251)

    adorilson and aeros committed May 28, 2020
    * Use a more universal explanation of string interpolation rather than specifically referencing sprintf(), which depends on the reader having a C background.
    
    
    Co-authored-by: Kyle Stanley <aeros167@gmail.com>
  16. bpo-39939: Fix removeprefix issue number in the What's New in Python…

    elazarg committed May 28, 2020
    … 3.9 (GH-20473)
Commits on May 27, 2020
  1. bpo-40275: test.support imports subprocess lazily (GH-20471)

    vstinner committed May 27, 2020
    test.support module now imports the platform and subprocess modules
    lazily to reduce the number of modules imported by
    "import test.support".
    
    With this change, the threading module is no longer imported
    indirectly by "import test.support".
    
    Use sys.version rather than platform.machine() to detect the Windows
    ARM32 buildbot.
  2. bpo-40275: test.support.check_impl_detail() uses sys.implementation (G…

    vstinner committed May 27, 2020
    …H-20468)
    
    check_impl_detail() of test.support now uses sys.implementation.name,
    instead of platform.python_implementation().lower(). This change
    prepares test.support to import the platform module lazily.
  3. bpo-40795: ctypes calls unraisablehook with an exception (GH-20452)

    vstinner committed May 27, 2020
    If ctypes fails to convert the result of a callback or if a ctypes
    callback function raises an exception, sys.unraisablehook is now
    called with an exception set. Previously, the error was logged into
    stderr by PyErr_Print().
  4. Revert "bpo-32604: PEP 554 for use in test suite (GH-19985)" (#20465)

    pablogsal committed May 27, 2020
    This reverts commit 9d17cbf.
  5. bpo-37129: Add os.RWF_APPEND flag for os.pwritev() (GH-20336)

    YoSTEALTH committed May 27, 2020
  6. Fix compiler warnings in _zoneinfo.c (GH-20342)

    pablogsal committed May 27, 2020
    ```
    D:\a\cpython\cpython\Modules\_zoneinfo.c(903,52): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [D:\a\cpython\cpython\PCbuild\_zoneinfo.vcxproj]
    D:\a\cpython\cpython\Modules\_zoneinfo.c(904,44): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [D:\a\cpython\cpython\PCbuild\_zoneinfo.vcxproj]
    D:\a\cpython\cpython\Modules\_zoneinfo.c(1772,31): warning C4244: '=': conversion from 'ssize_t' to 'uint8_t', possible loss of data [D:\a\cpython\cpython\PCbuild\_zoneinfo.vcxproj]
    ```
  7. bpo-40614: Respect feature version for f-string debug expressions (GH…

    3 people committed May 27, 2020
    …-20196)
    
    Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
    Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Older
You can’t perform that action at this time.