Skip to content
Permalink
3.9

Commits on Dec 20, 2020

  1. bpo-42669: Document that `except` rejects nested tuples (GH-23822) (G…

    …H-23870)
    
    In Python 2, it was possible to use `except` with a nested tuple, and occasionally natural.  For example, `zope.formlib.interfaces.InputErrors` is a tuple of several exception classes, and one might reasonably think to do something like this:
    
        try:
            self.getInputValue()
            return True
        except (InputErrors, SomethingElse):
            return False
    
    As of Python 3.0, this raises `TypeError: catching classes that do not inherit from BaseException is not allowed` instead: one must instead either break it up into multiple `except` clauses or flatten the tuple.  However, the reference documentation was never updated to match this new restriction.  Make it clear that the definition is no longer recursive.
    
    Automerge-Triggered-By: GH:ericvsmith
    (cherry picked from commit c95f8bc)
    
    Co-authored-by: Colin Watson <cjwatson@debian.org>
    
    Co-authored-by: Colin Watson <cjwatson@debian.org>
    miss-islington and cjwatson committed Dec 20, 2020
  2. bpo-42604: always set EXT_SUFFIX=${SOABI}${SHLIB_SUFFIX} when using c…

    …onfigure (GH-23708) (GH-23866)
    
    Now all platforms use a value for the "EXT_SUFFIX" build variable derived
    from SOABI (for instance in FreeBSD, "EXT_SUFFIX" is now ".cpython-310d.so"
    instead of ".so"). Previously only Linux, Mac and VxWorks were using a value
    for "EXT_SUFFIX" that included "SOABI".
    
    Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
    (cherry picked from commit a44ce6c)
    
    Co-authored-by: Matti Picus <matti.picus@gmail.com>
    
    Co-authored-by: Matti Picus <matti.picus@gmail.com>
    miss-islington and mattip committed Dec 20, 2020
  3. bpo-41724: Explain when the conversion is not possible with detect_ty…

    …pes enabled (GH-23855) (GH-23862)
    
    * Explain when the conversion is not possible with detect_types enabled
    (cherry picked from commit 09a36cd)
    
    Co-authored-by: sblondon <sblondon@users.noreply.github.com>
    
    Co-authored-by: sblondon <sblondon@users.noreply.github.com>
    miss-islington and sblondon committed Dec 20, 2020

Commits on Dec 19, 2020

  1. bpo-40219: Lowered ttk LabeledScale dummy (GH-21467) (GH-23788)

    (cherry picked from commit b9ced83)
    miss-islington committed Dec 19, 2020
  2. [3.9] bpo-42630: Improve error reporting in Tkinter for absent defaul…

    …t root (GH-23781) (GH-23853)
    
    * Tkinter functions and constructors which need a default root window
      raise now RuntimeError with descriptive message instead of obscure
      AttributeError or NameError if it is not created yet or cannot
      be created automatically.
    
    * Add tests for all functions which use default root window.
    
    * Fix import in the pynche script.
    
    (cherry picked from commit 3d569fd)
    serhiy-storchaka committed Dec 19, 2020

Commits on Dec 18, 2020

  1. bpo-36769: Document that fnmatch.filter supports any kind of iterable (

    …GH-13039)
    
    (cherry picked from commit e8d2264)
    
    Co-authored-by: Andre Delfino <adelfino@gmail.com>
    miss-islington and andresdelfino committed Dec 18, 2020
  2. bpo-41891: ensure asyncio.wait_for waits for task completion (GH-22461)…

    … (#23840)
    
    (cherry picked from commit 17ef431)
    
    Co-authored-by: Richard Kojedzinszky <rkojedzinszky@users.noreply.github.com>
    
    Co-authored-by: Richard Kojedzinszky <rkojedzinszky@users.noreply.github.com>
    miss-islington and rkojedzinszky committed Dec 18, 2020
  3. bpo-17140: Document multiprocessing's ThreadPool (GH-23812)

    Up until now, the `multiprocessing.pool.ThreadPool` class has gone
    undocumented, despite being a public class in multiprocessing that is
    included in `multiprocessing.pool.__all__`.
    (cherry picked from commit 84ebcf2)
    
    Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>
    miss-islington and godlygeek committed Dec 18, 2020
  4. bpo-39096: Format specification documentation fixes for numeric types (

    …GH-23575)
    
    (cherry picked from commit 886b2e5)
    
    Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
    miss-islington and mdickinson committed Dec 18, 2020

Commits on Dec 17, 2020

  1. bpo-42613: Fix freeze.py config directory (GH-23792) (GH-23817)

    Fix freeze.py tool to use the prope config and library directories.
    (cherry picked from commit 1c653f1)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington and vstinner committed Dec 17, 2020
  2. bpo-26564: fix obsolete comment in traceback.c (GH-23819)

    (cherry picked from commit 40125ab)
    
    Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
    miss-islington and iritkatriel committed Dec 17, 2020
  3. bpo-42375: subprocess DragonFlyBSD build update. (GH-23320) (GH-23388)

    Same as FreeBSD, file descriptors in /dev/fd id from 0 to 63.
    (cherry picked from commit 13b865f)
    
    Co-authored-by: David CARLIER <devnexen@gmail.com>
    
    Co-authored-by: David CARLIER <devnexen@gmail.com>
    miss-islington and devnexen committed Dec 17, 2020
  4. bpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795)

    Use shorter timeout and replace send() with sendall().
    (cherry picked from commit 79782fe)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington and vstinner committed Dec 17, 2020

Commits on Dec 16, 2020

  1. Fix indentation for get_stats_profile() docs (GH-23618)

    The existing method is indented one too many times which
    makes it look like a sub-method of print_callees().
    (cherry picked from commit a6ba2b9)
    
    Co-authored-by: Matthew Suozzo <msuozzo@google.com>
    miss-islington and msuozzo committed Dec 16, 2020
  2. bpo-37961: Fix regression in tracemalloc.Traceback.__repr__ (GH-23805)

    Regression in 8d59eb1.
    (cherry picked from commit 051b981)
    
    Co-authored-by: Daniel Hahler <git@thequod.de>
    miss-islington and blueyed committed Dec 16, 2020
  3. Add symbols of the stable ABI to python3dll.c (GH-23598) (GH-23801)

    Add the following symbols to python3dll.c:
    
    * PyFrame_GetCode (bpo-40421)
    * PyFrame_GetLineNumber (bpo-40421)
    * PyObject_CallNoArgs (bpo-37194)
    * PyThreadState_GetFrame (bpo-39947)
    * PyThreadState_GetID (bpo-39947)
    * PyThreadState_GetInterpreter (bpo-39947)
    
    (cherry picked from commit fcc6935)
    vstinner committed Dec 16, 2020
  4. bpo-38323: Add guard clauses in MultiLoopChildWatcher. (GH-22756)

    This is a trivial refactor in preparation for a fix for bpo-38323.
    (cherry picked from commit 66d3b58)
    
    Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
    miss-islington and cjerdonek committed Dec 16, 2020
  5. bpo-39101: Fixes BaseException hang in IsolatedAsyncioTestCase. (GH-2…

    …2654)
    
    (cherry picked from commit 8374d2e)
    
    Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
    miss-islington and lisroach committed Dec 16, 2020
  6. bpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614) (GH-23804)

    "uint8_t day" is unsigned and so "day < 0" test is always true.
    Remove the test to fix the following warnings on Windows:
    
    modules\_zoneinfo.c(1224): warning C4068: unknown pragma
    modules\_zoneinfo.c(1225): warning C4068: unknown pragma
    modules\_zoneinfo.c(1227): warning C4068: unknown pragma
    (cherry picked from commit aefb69b)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington and vstinner committed Dec 16, 2020
  7. bpo-19733: Re-enable tests for -image option in Tkinter (GH-23785)

    (cherry picked from commit 5f0fe8e)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed Dec 16, 2020
  8. bpo-42644: Validate values in logging.disable() (GH-23786)

    * bpo-42644: Validate values in logging.disable()
    
    Technically make the value of manager a property that checks and convert
    values assigned to it properly. This has the side effect of making
    `logging.disable` also accept strings representing the various level of
    warnings.
    
    We want to validate the type of the disable attribute at assignment
    time, as it is later compared to other levels when emitting warnings and
    would generate a `TypeError: '>=' not supported between ....` in a
    different part of the code base, which can make it difficult to track
    down.
    
    When assigned an incorrect value; it will raise a TypeError when the
    wrong type, or ValueError if an invalid str.
    
    Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
    (cherry picked from commit b32d8b4)
    
    Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
    miss-islington and Carreau committed Dec 16, 2020

Commits on Dec 15, 2020

  1. [3.9] bpo-42318: Fix support of non-BMP characters in Tkinter on macOS (

    GH-23281). (GH-23784)
    
    (cherry picked from commit a26215d)
    serhiy-storchaka committed Dec 15, 2020
  2. bpo-33610: Edit idlelib.codecontext (GH-23773) (GH-23775)

    Add sentence to module docstring and import tkinter items.
    (cherry picked from commit 6f79e60)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Dec 15, 2020
  3. [3.9] bpo-42567: [Enum] call __init_subclass__ after members are added (

    GH-23714) (GH-23772)
    
    When creating an Enum, `type.__new__` calls `__init_subclass__`, but at that point the members have not been added.
    
    This patch suppresses the initial call, then manually calls the ancestor `__init_subclass__` before returning the new Enum class.
    (cherry picked from commit 6bd94de)
    ethanfurman committed Dec 15, 2020

Commits on Dec 14, 2020

  1. [3.9] bpo-42517: [Enum] deprecate private name members (GH-23722) (GH…

    …-23748)
    
    private names will raise a DeprecationWarning; in 3.10 they will become normal attributes
    miss-islington committed Dec 14, 2020
  2. bpo-42591: Export missing Py_FrozenMain() symbol (GH-23730) (GH-23734)

    Export the Py_FrozenMain() function: fix a Python 3.9.0 regression.
    Python 3.9 uses -fvisibility=hidden and the function was not exported
    explicitly and so not exported.
    
    (cherry picked from commit b5c7b38)
    vstinner committed Dec 14, 2020
  3. bpo-40084: Enum - dir() includes member attributes (GH-19219)

    (cherry picked from commit 68526fe)
    
    Co-authored-by: Angelin BOOZ <9497359+lem2clide@users.noreply.github.com>
    miss-islington and lem2clide committed Dec 14, 2020
  4. bpo-42059: Fix required/optional keys for TypedDict(..., total=False) (

    …GH-22736) (GH-23747)
    
    (cherry picked from commit 67b769f)
    
    Co-authored-by: Alex Grönholm <alex.gronholm@nextday.fi>
    miss-islington and agronholm committed Dec 14, 2020
  5. bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759)

    Add positional only args support to lib2to3 pgen2.
    
    This adds 3.8's PEP-570 support to lib2to3's pgen2.  lib2to3, while
    being deprecated is still used by things to parse all versions of Python
    code today.  We need it to support parsing modern 3.8 and 3.9 constructs.
    
    Also add tests for complex *expr and **expr's.
    (cherry picked from commit 42c9f0f)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    miss-islington and gpshead committed Dec 14, 2020
  6. [3.9] bpo-42195: Ensure consistency of Callable's __args__ in collect…

    …ions.abc and typing (GH-23765)
    
    Backport of GH-23060.
    Fidget-Spinner committed Dec 14, 2020
Older
You can’t perform that action at this time.