Skip to content
Permalink
main
Switch branches/tags

Commits on Jun 13, 2022

  1. gh-89653: PEP 670: Macros always cast arguments in cpython/ (#93766)

    Header files in the Include/cpython/ are only included if
    the Py_LIMITED_API macro is not defined.
    vstinner committed Jun 13, 2022
  2. gh-93353: Fix importlib.resources._tempfile() finalizer (#93377)

    Fix the importlib.resources.as_file() context manager to remove the
    temporary file if destroyed late during Python finalization: keep a
    local reference to the os.remove() function. Patch by Victor Stinner.
    vstinner committed Jun 13, 2022
  3. Remove ANY_VARARGS() macro from the C API (#93764)

    The macro was exposed by mistake.
    vstinner committed Jun 13, 2022
  4. gh-89653: PEP 670: Convert PyFunction macros (#93765)

    Convert PyFunction macros to static inline functions.
    vstinner committed Jun 13, 2022

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 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
  6. gh-90763: Modernise xx template module initialisation (#93078)

    Use C APIs such as PyModule_AddType instead of PyModule_AddObject.
    Also remove incorrect module decrefs if module fails to initialise.
    erlend-aasland 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
Older