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 Apr 25, 2023

  1. gh-103721: Improve cross-references for generic-alias docs (#103838)

    Cc. @adriangb
    
    The "stub documentation" in `types.rst` does already link to the
    in-depth docs in `stdtypes.rst`, but the link isn't obvious for new
    users. It deserves to be made more prominent.
    
    - Issue: #103721
    AlexWaygood committed Apr 25, 2023
  2. gh-51574: Make tempfile.mkdtemp() always return absolute paths (#94612)

    Co-authored-by: Éric <merwok@netwok.org>
    Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
    3 people committed Apr 25, 2023
  3. gh-102950: Adjust tarfile filter tests for systems that don't set the…

    … sticky bit (GH-103831)
    
    Also remove expilcit `type=tarfile.DIRTYPE`, the slash at the end is
    enough.
    encukou committed Apr 25, 2023
  4. gh-103726: Set up gcc-10 for ASAN (gh-103728)

    <!--
    Thanks for your contribution!
    Please read this comment in its entirety. It's quite important.
    
    # Pull Request title
    
    It should be in the following format:
    
    ```
    gh-NNNNN: Summary of the changes made
    ```
    
    Where: gh-NNNNN refers to the GitHub issue number.
    
    Most PRs will require an issue number. Trivial changes, like fixing a
    typo, do not need an issue.
    
    # Backport Pull Request title
    
    If this is a backport PR (PR made against branches other than `main`),
    please ensure that the PR title is in the following format:
    
    ```
    [X.Y] <title from the original PR> (GH-NNNN)
    ```
    
    Where: [X.Y] is the branch name, e.g. [3.6].
    
    GH-NNNN refers to the PR number from `main`.
    
    -->
    
    
    <!-- gh-issue-number: gh-103726 -->
    * Issue: gh-103726
    <!-- /gh-issue-number -->
    corona10 committed Apr 25, 2023
  5. gh-100227: Add a Granular Lock for _PyRuntime.imports.extensions.dict (

    …gh-103460)
    
    The lock is unnecessary as long as there's a GIL, but completely
    necessary with a per-interpreter GIL.
    ericsnowcurrently committed Apr 25, 2023
  6. gh-103636: add enums for days and months in calendar module (GH-103642)

    Convert day contants to a Day enum, and add a Month enum.
    Agent-Hellboy committed Apr 25, 2023
  7. gh-103718: Correctly set f-string buffers in all cases (GH-103815)

    Turns out we always need to remember/restore fstring buffers in all of
    the stack of tokenizer modes, cause they might change to
    `TOK_REGULAR_MODE` and have newlines inside the braces (which is when we
    need to reallocate the buffer and restore the fstring ones).
    lysnikolaou committed Apr 25, 2023
  8. gh-82814: fix shutil access error on WSL (#103790)

    gh-82814: Adds `errno.EACCES` to the list of ignored errors on
    `_copyxattr`.  EPERM and EACCES are different constants but
    in general should be treated the same.
    
    News entry authored by: Gregory P. Smith <greg@krypto.org>
    alago1 committed Apr 25, 2023

Commits on Apr 24, 2023

  1. Also fail DO-NOT-MERGE when "awaiting changes" or "awaiting change re…

    …view" present on PR (#103807)
    
    "awaiting changes" means somebody put a review that requested changes.
    
    "awaiting change review" means that the PR author published changes
    after a red review and then requested a re-review.
    ambv committed Apr 24, 2023
  2. gh-103810: Fix broken references in dataclasses (#103811)

    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    olgarithms and hugovk committed Apr 24, 2023
  3. GH-103805: Lib test f541 linting issue fix (#103812)

    This PR makes some minor linting adjustments to the Lib/test module
    caught by [ruff](https://github.com/charliermarsh/ruff). The adjustments
    are all related to the `F541 f-string without any placeholders` issue.
    
    Issue: #103805
    
    <!-- gh-issue-number: gh-103805 -->
    * Issue: gh-103805
    <!-- /gh-issue-number -->
    
    ---------
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    3 people committed Apr 24, 2023
  4. gh-101659: Isolate "obmalloc" State to Each Interpreter (gh-101660)

    This is strictly about moving the "obmalloc" runtime state from
    `_PyRuntimeState` to `PyInterpreterState`.  Doing so improves isolation
    between interpreters, specifically most of the memory (incl. objects)
    allocated for each interpreter's use.  This is important for a
    per-interpreter GIL, but such isolation is valuable even without it.
    
    FWIW, a per-interpreter obmalloc is the proverbial
    canary-in-the-coalmine when it comes to the isolation of objects between
    interpreters.  Any object that leaks (unintentionally) to another
    interpreter is highly likely to cause a crash (on debug builds at
    least).  That's a useful thing to know, relative to interpreter
    isolation.
    ericsnowcurrently committed Apr 24, 2023
  5. gh-103801: Tools/wasm linting and formatting (#103796)

    This PR makes three minor linting adjustments to the `wasm` module
    caught by [ruff](https://github.com/charliermarsh/ruff).
    
    <!-- gh-issue-number: gh-103801 -->
    * Issue: gh-103801
    <!-- /gh-issue-number -->
    
    ---------
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    dversoza and blurb-it[bot] committed Apr 24, 2023
  6. gh-103673: Add missing ForkingUnixStreamServer and ForkingUnixDatagra…

    …mServer socketservers (#103674)
    
    sockserver gains ForkingUnixStreamServer and ForkingUnixDatagramServer classes for consistency with all of the others. Ironically these existed but were buried in our test suite.
    
    Addresses #103673 
    
    <!-- gh-issue-number: gh-103673 -->
    * Issue: gh-103673
    <!-- /gh-issue-number -->
    
    ---------
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    3 people committed Apr 24, 2023
  7. gh-95795: Move types.next_version_tag to PyInterpreterState (gh-102343)

    Core static types will continue to use the global value.  All other types
    will use the per-interpreter value.  They all share the same range, where
    the global types use values < 2^16 and each interpreter uses values
    higher than that.
    ericsnowcurrently committed Apr 24, 2023
  8. gh-87729: add LOAD_SUPER_ATTR instruction for faster super() (#103497)

    This speeds up `super()` (by around 85%, for a simple one-level
    `super().meth()` microbenchmark) by avoiding allocation of a new
    single-use `super()` object on each use.
    carljm committed Apr 24, 2023
  9. gh-103791: Make contextlib.suppress also act on exceptions within an …

    …ExceptionGroup (#103792)
    
    Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
    ambv and iritkatriel committed Apr 24, 2023
  10. gh-100227: Only Use deepfreeze for the Main Interpreter (gh-103794)

    Deep-frozen code objects are cannot be shared (currently) by
    interpreters, due to how adaptive specialization can modify the
    bytecodes. We work around this by only using the deep-frozen objects in
    the main interpreter. This does incur a performance penalty for
    subinterpreters, which we may be able to resolve later.
    ericsnowcurrently committed Apr 24, 2023
  11. gh-101100: Fix Sphinx warnings in argparse module (#103289)

    Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    3 people committed Apr 24, 2023
  12. gh-102498 Clean up unused variables and imports in the email module (#…

    …102482)
    
    * Clean up unused variables and imports in the email module
    
    * Remove extra newline char
    
    * Remove superflous dict+unpacking syntax
    
    * Remove unused 'msg' var
    
    * Clean up unused variables and imports in the email module
    
    * Remove extra newline char
    
    * Remove superflous dict+unpacking syntax
    
    * Remove unused 'msg' var
    
    ---------
    
    Co-authored-by: Barry Warsaw <barry@python.org>
    JosephSBoyle and warsaw committed Apr 24, 2023
  13. gh-99032: datetime docs: Encoding is no longer relevant (#93365)

    This removes a section of the `strftime` and `strptime` documentation that refers to a bygone era when `strftime` would return an encoded byte string.
    
    ---------
    
    Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
    wjandrea and pganssle committed Apr 24, 2023
  14. gh-94300: Update datetime.strptime documentation (#95318)

    The new wording better reflects the cases where `datetime.strptime` differs from` time.strptime`.
    
    ---------
    
    Co-authored-by: Paul Ganssle <git@m.ganssle.io>
    howiezhao and pganssle committed Apr 24, 2023
  15. gh-103776: Remove explicit uses of $(SHELL) from Makefile (GH-103778)

    This avoids conflicting with the shebang of the called scripts as well
    as avoiding hard errors on platforms where the called script runs a
    failing unchecked command in the usual course of checking since
    `SHELL=/bin/sh -e` as of a90863c.
    
    Fixes gh-103776.
    zware committed Apr 24, 2023
  16. gh-87092: fix a few cases of incorrect error handling in compiler (#1…

    …03456)
    
    gh-87092: fix a few cases of incorrect error handling
    iritkatriel committed Apr 24, 2023
  17. Revert "Add tests for empty range equality (#103751)" (#103770)

    This reverts commit dca27a6.
    Added tests are redundant with existing tests.
    terryjreedy committed Apr 24, 2023
  18. gh-94518: Port 23-argument _posixsubprocess.fork_exec to Argument C…

    …linic (#94519)
    
    Convert fork_exec to pre-inlined-argparser Argument Clinic
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    arhadthedev and gpshead committed Apr 24, 2023
  19. GH-65022: Fix description of copyreg.pickle function (#102656)

    Fix description of copyreg.pickle function
    furkanonder committed Apr 24, 2023
Older