Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on May 8, 2023

  1. gh-89550: Buffer GzipFile.write to reduce execution time by ~15% (#10…

    …1251)
    
    Use `io.BufferedWriter` to buffer gzip writes.
    
    ---------
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    3 people committed May 8, 2023
  2. gh-104223: Fix issues with inheriting from buffer classes (#104227)

    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    JelleZijlstra and kumaraditya303 committed May 8, 2023
  3. gh-99108: fix typo in Modules/Setup (#104293)

    case sensitive filename
    msprotz committed May 8, 2023
  4. Trim trailing whitespace and test on CI (#104275)

    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    hugovk and AlexWaygood committed May 8, 2023
  5. gh-102500: Remove mention of bytes shorthand (#104281)

    The bytes shorthand was removed in PEP 688:
    https://peps.python.org/pep-0688/#no-special-meaning-for-bytes
    
    I also remove the reference to `collections.abc.ByteString`, since that
    object is deprecated (#91896) and has different semantics (#102092)
    hauntsaninja committed May 8, 2023
  6. gh-99108: Replace SHA3 implementation HACL* version (#103597)

    Replaces our built-in SHA3 implementation with a verified one from the HACL* project.
    
    This implementation is used when OpenSSL does not provide SHA3 or is not present.
    
    3.11 shiped with a very slow tiny sha3 implementation to get off of the <=3.10 reference implementation that wound up having serious bugs. This brings us back to a reasonably performing built-in implementation consistent with what we've just replaced our other guaranteed available standard hash algorithms with: code from the HACL* project.
    
    ---------
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    msprotz and gpshead committed May 8, 2023

Commits on May 7, 2023

  1. GH-102613: Improve performance of pathlib.Path.rglob() (GH-104244)

    Stop de-duplicating results in `_RecursiveWildcardSelector`. A new
    `_DoubleRecursiveWildcardSelector` class is introduced which performs
    de-duplication, but this is used _only_ for patterns with multiple
    non-adjacent `**` segments, such as `path.glob('**/foo/**')`. By avoiding
    the use of a set, `PurePath.__hash__()` is not called, and so paths do not
    need to be stringified and case-normalised.
    
    Also merge adjacent '**' segments in patterns.
    barneygale committed May 7, 2023
  2. GH-89812: Churn pathlib.Path methods (GH-104243)

    Re-arrange `pathlib.Path` methods in source code. No other changes.
    
    The methods are arranged as follows:
    
    1. `stat()` and dependants (`exists()`, `is_dir()`, etc)
    2. `open()` and dependants (`read_text()`, `write_bytes()`, etc)
    3. `iterdir()` and dependants (`glob()`, `walk()`, etc)
    4. All other `Path` methods
    
    This patch prepares the ground for a new `_AbstractPath` class, which will
    support the methods in groups 1, 2 and 3 above. By churning the methods
    here, subsequent patches will be easier to review and less likely to break
    things.
    barneygale committed May 7, 2023
  3. gh-103193: cache calls to inspect._shadowed_dict in `inspect.getatt…

    …r_static` (#104267)
    
    Co-authored-by: Carl Meyer <carl@oddbird.net>
    AlexWaygood and carljm committed May 7, 2023
  4. gh-104018: remove unused format "z" handling in string formatfloat() (#…

    …104107)
    
    This is a cleanup overlooked in PR #104033.
    belm0 committed May 7, 2023
  5. gh-97696: Use PyObject_CallMethodNoArgs and inline is_loop_running …

    …check in `_asyncio` (#104255)
    itamaro committed May 7, 2023
  6. gh-103886: Improve builtins.__doc__ (#104179)

    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    tomasr8 and JelleZijlstra committed May 7, 2023
  7. gh-104254: Document the optional keyword-only "context" argument to T…

    …ask constructor (#104251)
    
    (This was added in 3.11. It was already documented for `create_task()`, but not for `Task()`.)
    itamaro committed May 7, 2023

Commits on May 6, 2023

  1. gh-101640: Make argparse _print_message catch any write error (#101802)

    * In particular, don't exit when trying to print to stderr = None.
    * Add tests
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    arhadthedev and terryjreedy committed May 6, 2023
  2. gh-99113: Make Sure the GIL is Acquired at the Right Places (gh-104208)

    This is a pre-requisite for a per-interpreter GIL.  Without it this change isn't strictly necessary.  However, there is no real downside otherwise.
    ericsnowcurrently committed May 6, 2023
  3. gh-99113: Add a check for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-10…

    …4206)
    
    Py_MOD_PER_INTERPRETER_GIL_SUPPORTED is a new supported value for Py_mod_multiple_interpreters, added in gh-104205.
    ericsnowcurrently committed May 6, 2023
  4. gh-101819: Remove unused 'locale_module' from _io state (#104246)

    The locale module reference was introduced by 932ff83 in 2013,
    and rendered unused by 710e826 (gh-23050) in 2020.
    erlend-aasland committed May 6, 2023
  5. GH-103548: Improve performance of pathlib.Path.[is_]absolute() (GH-…

    …103549)
    
    Improve performance of `pathlib.Path.absolute()` and `cwd()` by joining paths only when necessary. Also improve
    performance of `PurePath.is_absolute()` on Posix by skipping path parsing and normalization.
    barneygale committed May 6, 2023
  6. gh-90953: Emit deprecation warnings for ast features deprecated in …

    …Python 3.8 (#104199)
    
    `ast.Num`, `ast.Str`, `ast.Bytes`, `ast.Ellipsis` and `ast.NameConstant` now all emit deprecation warnings on import, access, instantation or `isinstance()` checks.
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    AlexWaygood and serhiy-storchaka committed May 6, 2023
  7. Rewrite the turtledemo makeGraphFrame method (#104224)

    Replace `self._canvas` and `self.scanvas`, both bound to `canvas`,
    with `self.canvas, which is accessed in other methods.
    Replace `_s_` with `screen` and `_s_._canvas` with `canvas`.
    Add a comment explaining the unorthodox use of
    function turtle.Screen and singleton class turtle._Screen.
    terryjreedy committed May 6, 2023
Older