Skip to content

Commits on Jun 12, 2022

  1. gh-91162: Support splitting of unpacked arbitrary-length tuple over T…

    …ypeVar and TypeVarTuple parameters (alt) (GH-93412)
    
    For example:
    
      A[T, *Ts][*tuple[int, ...]] -> A[int, *tuple[int, ...]]
      A[*Ts, T][*tuple[int, ...]] -> A[*tuple[int, ...], int]
    serhiy-storchaka committed Jun 12, 2022

Commits on Jun 11, 2022

  1. gh-84461: Use HOSTRUNNER to run regression tests (GH-93694)

    Co-authored-by: Brett Cannon <brett@python.org>
    tiran and brettcannon committed Jun 11, 2022

Commits on Jun 10, 2022

  1. gh-91317: Document that Path does not collapse initial // (GH-32193)

    Documentation for `pathlib` says:
    
    > Spurious slashes and single dots are collapsed, but double dots ('..') are not, since this would change the meaning of a path in the face of symbolic links:
    
    However, it omits that initial double slashes also aren't collapsed.
    
    Later, in documentation of `PurePath.drive`, `PurePath.root`, and `PurePath.name` it mentions UNC but:
    
    - this abbreviation says nothing to a person who is unaware about existence of UNC (Wikipedia doesn't help either by [giving a disambiguation page](https://en.wikipedia.org/wiki/UNC))
    - it shows up only if a person needs to use a specific property or decides to fully learn what the module provides.
    
    For context, see the BPO entry.
    arhadthedev committed Jun 10, 2022
  2. GH-93621: reorder code in with/async-with exception exit path to redu…

    …ce the size of the exception table (GH-93622)
    iritkatriel committed Jun 10, 2022
  3. gh-93671: Avoid exponential backtracking in deeply nested sequence pa…

    …tterns in match statements (GH-93680)
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    pablogsal and ambv committed Jun 10, 2022
  4. gh-93466: Document PyType_Spec doesn't accept repeated slot IDs; rais…

    …e where this was problematic (GH-93471)
    encukou committed Jun 10, 2022
  5. gh-93491: Add support tier detection to configure (GH-93492)

    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    Co-authored-by: Steve Dower <steve.dower@microsoft.com>
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
    4 people committed Jun 10, 2022

Commits on Jun 9, 2022

  1. gh-90549: Fix leak of global named resources using multiprocessing sp…

    …awn (#30617)
    
    Co-authored-by: XD Trol <milestonejxd@gmail.com>
    Co-authored-by: Antoine Pitrou <pitrou@free.fr>
    3 people committed Jun 9, 2022
  2. bpo-45383: Get metaclass from bases in PyType_From* (GH-28748)

    This checks the bases of of a type created using the FromSpec
    API to inherit the bases metaclasses.  The metaclass's alloc
    function will be called as is done in `tp_new` for classes
    created in Python.
    
    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
    3 people committed Jun 9, 2022
  3. gh-90494: Reject 6th element of the __reduce__() tuple (GH-93609)

    copy.copy() and copy.deepcopy() now always raise a TypeError if
    __reduce__() returns a tuple with length 6 instead of silently ignore
    the 6th item or produce incorrect result.
    serhiy-storchaka committed Jun 9, 2022

Commits on Jun 8, 2022

  1. gh-93575: Use correct way to calculate PyUnicode struct sizes (GH-93602)

    * gh-93575: Use correct way to calculate PyUnicode struct sizes
    
    * Add comment to keep test_sys and test_unicode in sync
    
    * Fix case code < 256
    tiran committed Jun 8, 2022
  2. gh-93584: Make all install+tests targets depends on all (GH-93589)

    All install targets use the "all" target as synchronization point to
    prevent race conditions with PGO builds. PGO builds use recursive make,
    which can lead to two parallel `./python setup.py build` processes that
    step on each others toes.
    
    "test" targets now correctly compile PGO build in a clean repo.
    tiran committed Jun 8, 2022

Commits on Jun 7, 2022

  1. gh-93370: Deprecate sqlite3.version and sqlite3.version_info (#93482)

    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    4 people committed Jun 7, 2022
  2. gh-88831: In docs for asyncio.create_task, explain why strong referen…

    …ces to tasks are needed (GH-93258)
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    agrommek and ambv committed Jun 7, 2022
  3. gh-57539: Increase calendar test coverage (GH-93468)

    Co-authored-by: Sean Fleming
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    3 people committed Jun 7, 2022
  4. gh-93162: Add ability to configure QueueHandler/QueueListener together (

    GH-93269)
    
    Also, provide getHandlerByName() and getHandlerNames() APIs.
    
    Closes #93162.
    vsajip committed Jun 7, 2022
  5. gh-79096: Protect cookie file created by {LWP,Mozilla}CookieJar.save() (

    GH-93463)
    
    Note: This change is not effective on Microsoft Windows.
    
    Cookies can store sensitive information and should therefore be protected
    against unauthorized third parties. This is also described in issue #79096.
    
    The filesystem permissions are currently set to 644, everyone can read the
    file. This commit changes the permissions to 600, only the creater of the file
    can read and modify it. This improves security, because it reduces the attack
    surface. Now the attacker needs control of the user that created the cookie or
    a ways to circumvent the filesystems permissions.
    
    This change is backwards incompatible. Systems that rely on world-readable
    cookies will breake. However, one could argue that those are misconfigured in
    the first place.
    pSub committed Jun 7, 2022

Commits on Jun 5, 2022

  1. gh-89973: Fix re.error in the fnmatch module. (GH-93072)

    Character ranges with upper bound less that lower bound (e.g. [c-a])
    are now interpreted as empty ranges, for compatibility with other glob
    pattern implementations. Previously it was re.error.
    serhiy-storchaka committed Jun 5, 2022
  2. gh-93442: Make C++ version of _Py_CAST work with 0/NULL. (#93500)

    Add C++ overloads for _Py_CAST_impl() to handle 0/NULL.  This will allow
    C++ extensions that pass 0 or NULL to macros using _Py_CAST() to
    continue to compile.  Without this, you get an error like:
    
        invalid ‘static_cast’ from type ‘int’ to type ‘_object*’
    
    The modern way to use a NULL value in C++ is to use nullptr.  However,
    we want to not break extensions that do things the old way.
    
    Co-authored-by: serge-sans-paille
    nascheme committed Jun 5, 2022
Older