Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backport a9a74da 3.13 #119642

Closed
wants to merge 160 commits into from
Closed

Commits on May 8, 2024

  1. Post 3.13.0b1

    Yhg1s committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c844b14 View commit details
    Browse the repository at this point in the history
  2. [3.13] Run CI on the 3.13 branch (pythonGH-118779) (python#118781)

    (cherry picked from commit c68311d)
    
    Co-authored-by: Jelle Zijlstra <[email protected]>
    miss-islington and JelleZijlstra authored May 8, 2024
    Configuration menu
    Copy the full SHA
    58d9a9b View commit details
    Browse the repository at this point in the history
  3. [3.13] Docs: fix typos in documentation (pythonGH-118752) (python#118787

    )
    
    Docs: fix typos in documentation (pythonGH-118752)
    (cherry picked from commit 7b0c247)
    
    Co-authored-by: Xie Yanbo <[email protected]>
    miss-islington and xyb authored May 8, 2024
    Configuration menu
    Copy the full SHA
    02d49af View commit details
    Browse the repository at this point in the history
  4. [3.13] pythongh-118772: Allow TypeVars without a default to follow th…

    …ose with a default when constructing aliases (pythonGH-118774) (python#118776)
    
    (cherry picked from commit aac6b01)
    
    Co-authored-by: Jelle Zijlstra <[email protected]>
    miss-islington and JelleZijlstra authored May 8, 2024
    Configuration menu
    Copy the full SHA
    c6680cd View commit details
    Browse the repository at this point in the history
  5. [3.13] docs: module page titles should not start with a link to thems…

    …elves (pythonGH-117099) (python#118790)
    
    docs: module page titles should not start with a link to themselves (pythonGH-117099)
    (cherry picked from commit bcb435e)
    
    Co-authored-by: Ned Batchelder <[email protected]>
    miss-islington and nedbat authored May 8, 2024
    Configuration menu
    Copy the full SHA
    c33bba6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8f31af6 View commit details
    Browse the repository at this point in the history
  7. [3.13] pythongh-117657: Fix data races when writing / reading `ob_gc_…

    …bits` (pythonGH-118292) (python#118796)
    
    Use relaxed atomics when reading / writing to the field. There are still a
    few places in the GC where we do not use atomics. Those should be safe as
    the world is stopped.
    (cherry picked from commit cb6f75a)
    
    Co-authored-by: mpage <[email protected]>
    miss-islington and mpage authored May 8, 2024
    Configuration menu
    Copy the full SHA
    7b9ca26 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. [3.13] [tests]: Mark test_statistics.test_kde_random with a ``req…

    …uires_resource('cpu')`` decorator (pythonGH-118801) (python#118818)
    
    [tests]: Mark ``test_statistics.test_kde_random`` with a ``requires_resource('cpu')`` decorator (pythonGH-118801)
    
    Mark test_kde_random with a requires_resource('cpu') decorator
    (cherry picked from commit 027e6d8)
    
    Co-authored-by: Kirill Podoprigora <[email protected]>
    miss-islington and Eclips4 authored May 9, 2024
    Configuration menu
    Copy the full SHA
    09896fc View commit details
    Browse the repository at this point in the history
  2. [3.13] pythongh-118033: Fix __weakref__ not set for generic datacla…

    …sses (pythonGH-118099) (python#118821)
    
    pythongh-118033: Fix `__weakref__` not set for generic dataclasses (pythonGH-118099)
    (cherry picked from commit fa9b9cb)
    
    Co-authored-by: Nikita Sobolev <[email protected]>
    miss-islington and sobolevn authored May 9, 2024
    Configuration menu
    Copy the full SHA
    632682c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d86b494 View commit details
    Browse the repository at this point in the history
  4. [3.13] pythongh-103956: Fix trace output in case of missing source …

    …line (pythonGH-103958) (pythonGH-118834)
    
    Print only filename with lineno if linecache.getline() returns an empty string.
    (cherry picked from commit 7c87ce7)
    
    Co-authored-by: Radislav Chugunov <[email protected]>
    miss-islington and chgnrdv authored May 9, 2024
    Configuration menu
    Copy the full SHA
    c4b853f View commit details
    Browse the repository at this point in the history
  5. pythongh-118802: Fix ACL use in test for non-English Windows (pythonG…

    …H-118831)
    
    (cherry picked from commit 82acc5f)
    
    Co-authored-by: Steve Dower <[email protected]>
    miss-islington and zooba authored May 9, 2024
    Configuration menu
    Copy the full SHA
    a98e44a View commit details
    Browse the repository at this point in the history
  6. [3.13] pythongh-118817: Fix asyncio REPL on Windows (pythonGH-118819)…

    … (python#118847)
    
    (cherry picked from commit c3643a1)
    
    Co-authored-by: Kirill Podoprigora <[email protected]>
    miss-islington and Eclips4 authored May 9, 2024
    Configuration menu
    Copy the full SHA
    738877a View commit details
    Browse the repository at this point in the history
  7. [3.13] pythongh-117657: Acquire a critical section around `SemLock.__…

    …{enter,exit}__` (pythonGH-118812) (python#118856)
    
    These methods are purely wrappers around `Semlock.{acquire,release}`,
    which expect a critical section to be held.
    (cherry picked from commit c30d8e5)
    
    Co-authored-by: mpage <[email protected]>
    miss-islington and mpage authored May 9, 2024
    Configuration menu
    Copy the full SHA
    62a559a View commit details
    Browse the repository at this point in the history
  8. pythongh-118773: Use language-invariant SDDL string instead of aliase…

    …s for ACLs. (pythonGH-118800)
    
    (cherry picked from commit 8af84b5)
    
    Co-authored-by: Steve Dower <[email protected]>
    miss-islington and zooba authored May 9, 2024
    Configuration menu
    Copy the full SHA
    9d646d0 View commit details
    Browse the repository at this point in the history
  9. [3.13] pythongh-118849: Fix "code will never be executed" warning in …

    …`dictobject.c` (pythonGH-118850) (python#118859)
    
    pythongh-118849: Fix "code will never be executed" warning in `dictobject.c` (pythonGH-118850)
    (cherry picked from commit 82abe75)
    
    Co-authored-by: Nikita Sobolev <[email protected]>
    miss-islington and sobolevn authored May 9, 2024
    Configuration menu
    Copy the full SHA
    098eec9 View commit details
    Browse the repository at this point in the history
  10. [3.13] pythongh-118561: Fix crash involving list.extend in free-threa…

    …ded build (pythonGH-118723) (python#118863)
    
    The `list_preallocate_exact` function did not zero initialize array
    contents. In the free-threaded build, this could expose uninitialized
    memory to concurrent readers between the call to
    `list_preallocate_exact` and the filling of the array contents with
    items.
    (cherry picked from commit 2402715)
    
    Co-authored-by: Sam Gross <[email protected]>
    miss-islington and colesbury authored May 9, 2024
    Configuration menu
    Copy the full SHA
    846cfb9 View commit details
    Browse the repository at this point in the history
  11. [3.13] pythongh-116984: Make mimalloc header includes relative to the…

    … current file (pythonGH-118808) (python#118866)
    
    Some embedders and extensions include parts of the internal API. The
    pycore_mimalloc.h file is transitively include by a number of other
    internal headers. This avoids include errors for code that was
    already including those headers.
    (cherry picked from commit 71cc065)
    
    Co-authored-by: Sam Gross <[email protected]>
    miss-islington and colesbury authored May 9, 2024
    Configuration menu
    Copy the full SHA
    0a23970 View commit details
    Browse the repository at this point in the history
  12. [3.13] pythongh-118846: Fix PGO tests in free-threaded build (pythonG…

    …H-118862) (python#118867)
    
    Avoid immortalizing objects in tests that verify garbage collection of
    classes or modules.
    
    This fixes test_ordered_dict and test_struct.
    (cherry picked from commit 1b1db2f)
    
    Co-authored-by: Sam Gross <[email protected]>
    miss-islington and colesbury authored May 9, 2024
    Configuration menu
    Copy the full SHA
    d4c6948 View commit details
    Browse the repository at this point in the history
  13. [3.13] pythongh-117657: Replace TSAN suppresions with more specific r…

    …ules (pythonGH-118722) (python#118870)
    
    Using `race:` filters out warnings if the function appears anywhere in
    the stack trace. This can hide a lot of unrelated warnings, especially
    for a function like `_PyEval_EvalFrameDefault`, which is somewhere on
    the stack more often than not.
    
    Change all free-threaded suppressions to `race_top:`, which only matches
    the top frame, and add any new suppressions this exposes.
    (cherry picked from commit 98ff3f6)
    
    Co-authored-by: Brett Simmers <[email protected]>
    miss-islington and swtaarrs authored May 9, 2024
    Configuration menu
    Copy the full SHA
    982c73a View commit details
    Browse the repository at this point in the history
  14. [3.13] pythongh-118851: Default ctx arguments to AST constructors to …

    …Load() (pythonGH-118854) (python#118871)
    
    (cherry picked from commit 68fbc00)
    
    Co-authored-by: Jelle Zijlstra <[email protected]>
    Co-authored-by: Alex Waygood <[email protected]>
    3 people authored May 9, 2024
    Configuration menu
    Copy the full SHA
    00ec116 View commit details
    Browse the repository at this point in the history
  15. [3.13] Revert "pythongh-115432: Add critical section variant that han…

    …dles a NULL object (pythonGH-115433)" (pythonGH-118861) (python#118872)
    
    This reverts commit ad4f909.
    
    The API ended up not being used.
    (cherry picked from commit 46c8081)
    
    Co-authored-by: Sam Gross <[email protected]>
    miss-islington and colesbury authored May 9, 2024
    Configuration menu
    Copy the full SHA
    b62cb52 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. Fix some missing null checks. (pythonGH-118721)

    (cherry picked from commit 7e6fcab)
    
    Co-authored-by: Steve Dower <[email protected]>
    miss-islington and zooba authored May 10, 2024
    Configuration menu
    Copy the full SHA
    d524802 View commit details
    Browse the repository at this point in the history
  2. pythongh-118689: Doc: fix ePub build (pythonGH-118690)

    (cherry picked from commit 7ac933e)
    
    Co-authored-by: Inada Naoki <[email protected]>
    miss-islington and methane authored May 10, 2024
    Configuration menu
    Copy the full SHA
    760b3f0 View commit details
    Browse the repository at this point in the history
  3. pythongh-118209: Add Windows structured exception handling to mmap mo…

    …dule (pythonGH-118213)
    
    (cherry picked from commit e85e8de)
    
    Co-authored-by: Dobatymo <[email protected]>
    miss-islington and Dobatymo authored May 10, 2024
    Configuration menu
    Copy the full SHA
    7dc9875 View commit details
    Browse the repository at this point in the history
  4. [3.13] Rename notimplemented_methods into nodefault_methods (pyth…

    …onGH-118896) (python#118898)
    
    Rename `notimplemented_methods` into `nodefault_methods` (pythonGH-118896)
    (cherry picked from commit 004db21)
    
    Co-authored-by: Nikita Sobolev <[email protected]>
    miss-islington and sobolevn authored May 10, 2024
    Configuration menu
    Copy the full SHA
    93fce2d View commit details
    Browse the repository at this point in the history
  5. [3.13] pythongh-118789: Restore hidden _PyWeakref_ClearRef (pythonG…

    …H-118797) (pythonGH-118903)
    
    pythongh-118789: Restore hidden `_PyWeakref_ClearRef` (pythonGH-118797)
    
    _PyWeakref_ClearRef was previously exposed in the public C-API, although
    it begins with an underscore and is not documented. It's used by a few
    C-API extensions. There is currently no alternative public API that can
    replace its use.
    
    _PyWeakref_ClearWeakRefsExceptCallbacks is the only thread-safe way to
    use _PyWeakref_ClearRef in the free-threaded build. This exposes the C
    symbol, but does not make the API public.
    (cherry picked from commit db5af7d)
    
    Co-authored-by: Sam Gross <[email protected]>
    miss-islington and colesbury authored May 10, 2024
    Configuration menu
    Copy the full SHA
    bb5bf24 View commit details
    Browse the repository at this point in the history
  6. [3.13] pythongh-117657: Fix data races reported by TSAN on `interp->t…

    …hreads.main` (pythonGH-118865) (python#118904)
    
    Use relaxed loads/stores when reading/writing to this field.
    (cherry picked from commit 22d5185)
    
    Co-authored-by: mpage <[email protected]>
    miss-islington and mpage authored May 10, 2024
    Configuration menu
    Copy the full SHA
    4480dd8 View commit details
    Browse the repository at this point in the history
  7. [3.13] Correct the argument names for secrets.choice and `secrets.r…

    …andbelow` in `secrets.rst` (pythonGH-118098) (pythonGH-118906)
    
    Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst` (pythonGH-118098)
    
    Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`.
    (cherry picked from commit c444362)
    
    Co-authored-by: Adam Dangoor <[email protected]>
    miss-islington and adamtheturtle authored May 10, 2024
    Configuration menu
    Copy the full SHA
    0874a40 View commit details
    Browse the repository at this point in the history
  8. [3.13] pythongh-117657: Fix QSBR race condition (pythonGH-118843) (py…

    …thon#118905)
    
    `_Py_qsbr_unregister` is called when the PyThreadState is already
    detached, so the access to `tstate->qsbr` isn't safe without locking the
    shared mutex. Grab the `struct _qsbr_shared` from the interpreter
    instead.
    (cherry picked from commit 33d2019)
    
    Co-authored-by: Alex Turner <[email protected]>
    miss-islington and SonicField authored May 10, 2024
    Configuration menu
    Copy the full SHA
    0becae3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6df4913 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b3074f0 View commit details
    Browse the repository at this point in the history
  11. [3.13] pythongh-118846: Fix free-threading test failures when run seq…

    …uentially (pythonGH-118864) (python#118927)
    
    The free-threaded build currently immortalizes some objects once the
    first thread is started. This can lead to test failures depending on the
    order in which tests are run. This PR addresses those failures by
    suppressing immortalization or skipping the affected tests.
    (cherry picked from commit b309c8e)
    
    Co-authored-by: Sam Gross <[email protected]>
    miss-islington and colesbury authored May 10, 2024
    Configuration menu
    Copy the full SHA
    cceb758 View commit details
    Browse the repository at this point in the history
  12. [3.13] pythongh-117657: Log TSAN warnings to separate files and archi…

    …ve them (pythonGH-118747) (python#118931)
    
    This ensures we don't lose races that occur in subprocesses or
    interleave races from workers running in parallel.
    
    Log files are collected and packaged into a zipfile that can be
    downloaded from the "Artifacts" section of the workflow run.
    (cherry picked from commit b88889e)
    
    Co-authored-by: mpage <[email protected]>
    miss-islington and mpage authored May 10, 2024
    Configuration menu
    Copy the full SHA
    7dc9e92 View commit details
    Browse the repository at this point in the history
  13. [3.13] pythongh-118921: Add copy() method for FrameLocalsProxy (p…

    …ythonGH-118923) (python#118933)
    
    (cherry picked from commit 35c4361)
    
    Co-authored-by: Tian Gao <[email protected]>
    miss-islington and gaogaotiantian authored May 10, 2024
    Configuration menu
    Copy the full SHA
    93ef7aa View commit details
    Browse the repository at this point in the history

Commits on May 11, 2024

  1. [3.13] pythongh-117655: Prevent test_strptime from raising a Deprec…

    …ationWarning (pythonGH-117668) (pythonGH-118956)
    
    pythongh-117655: Prevent `test_strptime` from raising a DeprecationWarning (pythonGH-117668)
    
    * Fix `test_strptime` raises a DeprecationWarning
    * Ignore deprecation warnings where appropriate.
    * Update Lib/test/datetimetester.py
    
    This is follow on work to silence unnecessary warnings from the test suite that changes for python#70647 added.
    (cherry picked from commit abead54)
    
    Co-authored-by: Nice Zombies <[email protected]>
    miss-islington and nineteendo authored May 11, 2024
    Configuration menu
    Copy the full SHA
    d309474 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2024

  1. [3.13] pythongh-118899: Add tests for NotImplemented attribute acce…

    …ss (pythonGH-118902) (python#118968)
    
    pythongh-118899: Add tests for `NotImplemented` attribute access (pythonGH-118902)
    (cherry picked from commit ec1398e)
    
    Co-authored-by: Nikita Sobolev <[email protected]>
    miss-islington and sobolevn authored May 12, 2024
    Configuration menu
    Copy the full SHA
    6e855b3 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. [3.13] pythonGH-118844: Fix build failures when combining --disable-g…

    …il with --enable-experimental-jit (pythonGH-118959)
    
    (cherry picked from commit 5b941e5)
    
    Co-authored-by: Savannah Ostrowski <[email protected]>
    miss-islington and savannahostrowski authored May 13, 2024
    Configuration menu
    Copy the full SHA
    9d2c10b View commit details
    Browse the repository at this point in the history
  2. [3.13] pythongh-87106: Fix inspect.signature.bind() handling of posit…

    …ional-only arguments with **kwargs (pythonGH-103404) (python#118985)
    
    (cherry picked from commit 9c15202)
    
    Co-authored-by: Jacob Walls <[email protected]>
    miss-islington and jacobtylerwalls authored May 13, 2024
    Configuration menu
    Copy the full SHA
    a8ea966 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9418832 View commit details
    Browse the repository at this point in the history
  4. pythongh-118876: Ensure PC/layout sets ns.temp before using it (pytho…

    …nGH-118880)
    
    Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows.
    (cherry picked from commit d8a82cc)
    
    Co-authored-by: I-Shen Leong <[email protected]>
    miss-islington and i-shenl authored May 13, 2024
    Configuration menu
    Copy the full SHA
    44995aa View commit details
    Browse the repository at this point in the history
  5. [3.13] pythongh-58933: Make pdb return to caller frame correctly when…

    … f_trace is not set (pythonGH-118979) (python#119007)
    
    pythongh-58933: Make pdb return to caller frame correctly when f_trace is not set (pythonGH-118979)
    (cherry picked from commit f526314)
    
    Co-authored-by: Tian Gao <[email protected]>
    miss-islington and gaogaotiantian authored May 13, 2024
    Configuration menu
    Copy the full SHA
    09d4c07 View commit details
    Browse the repository at this point in the history
  6. [3.13] pythongh-119010: Adds docs about __type_params__ to `functoo…

    …ls.update_wrapper` (pythonGH-119012) (python#119013)
    
    pythongh-119010: Adds docs about `__type_params__` to `functools.update_wrapper` (pythonGH-119012)
    (cherry picked from commit b04c497)
    
    Co-authored-by: Nikita Sobolev <[email protected]>
    Co-authored-by: Jelle Zijlstra <[email protected]>
    3 people authored May 13, 2024
    Configuration menu
    Copy the full SHA
    d1aac22 View commit details
    Browse the repository at this point in the history
  7. [3.13] pythongh-118998: Handle errors correctly in tmtotuple in `ti…

    …memodule` (pythonGH-118999) (python#119018)
    
    pythongh-118998: Handle errors correctly in `tmtotuple` in `timemodule` (pythonGH-118999)
    (cherry picked from commit fc75792)
    
    Co-authored-by: Nikita Sobolev <[email protected]>
    miss-islington and sobolevn authored May 13, 2024
    Configuration menu
    Copy the full SHA
    c7628b0 View commit details
    Browse the repository at this point in the history
  8. [3.13] pythonGH-118836: Fix JIT build error when SHT_NOTE section is …

    …present (pythonGH-119020)
    
    (cherry picked from commit e04cd96)
    
    Co-authored-by: Michał Górny <[email protected]>
    miss-islington and mgorny authored May 13, 2024
    Configuration menu
    Copy the full SHA
    29a2f9c View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. [3.13] pythongh-67693: Fix urlunparse() and urlunsplit() for URIs wit…

    …h path starting with multiple slashes and no authority (pythonGH-113563) (pythonGH-119023)
    
    (cherry picked from commit e237b25)
    
    Co-authored-by: Serhiy Storchaka <[email protected]>
    miss-islington and serhiy-storchaka authored May 14, 2024
    Configuration menu
    Copy the full SHA
    8720006 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    54839f0 View commit details
    Browse the repository at this point in the history
  3. [3.13] typing tests: remove some unnecessary uses of exec() (python…

    …GH-119005) (python#119038)
    
    
    (cherry picked from commit a9328e2)
    
    Co-authored-by: Alex Waygood <[email protected]>
    miss-islington and AlexWaygood authored May 14, 2024
    Configuration menu
    Copy the full SHA
    041cc2a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    87f683e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8439d09 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. [3.13] 3.13 What's New: Add PEP 702 (pythonGH-118922) (python#119062)

    I honestly forgot this slipped into 3.13, but I think it's worth highlighting more, as it is a PEP-sized change that makes the type system significantly more powerful.
    
    @Yhg1s I think it's also worth mentioning in your release announcements.
    (cherry picked from commit ee13797)
    
    Co-authored-by: Jelle Zijlstra <[email protected]>
    miss-islington and JelleZijlstra authored May 15, 2024
    Configuration menu
    Copy the full SHA
    dd8a61f View commit details
    Browse the repository at this point in the history
  2. pythongh-118486: Simplify test_win32_mkdir_700 to check the exact ACL (

    …pythonGH-119056)
    
    (cherry picked from commit 94591dc)
    
    Co-authored-by: Steve Dower <[email protected]>
    miss-islington and zooba authored May 15, 2024
    Configuration menu
    Copy the full SHA
    e1dfa97 View commit details
    Browse the repository at this point in the history
  3. [3.13] Remove references to private symbols from zipimport module doc…

    …string (pythonGH-119071)
    
    (cherry picked from commit 7d722b7)
    
    Co-authored-by: Thomas Grainger <[email protected]>
    miss-islington and graingert authored May 15, 2024
    Configuration menu
    Copy the full SHA
    f85d59c View commit details
    Browse the repository at this point in the history
  4. [3.13] pythongh-118760: Fix errors in calling Tkinter bindings on Win…

    …dows (pythonGH-118782) (pythonGH-119072)
    
    For unknown reasons some arguments for Tkinter binding can be created
    as a 1-tuple containing a Tcl_Obj when wantobjects is 2.
    (cherry picked from commit 5b88d95)
    
    Co-authored-by: Serhiy Storchaka <[email protected]>
    miss-islington and serhiy-storchaka authored May 15, 2024
    Configuration menu
    Copy the full SHA
    4f81915 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7c224dd View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. [3.13] Use literal syntax in origin property (pythonGH-119029) (pytho…

    …n#119083)
    
    Use literal syntax in origin property (pythonGH-119029)
    (cherry picked from commit 66b73e9)
    
    Co-authored-by: Rafael Fontenelle <[email protected]>
    miss-islington and rffontenelle authored May 16, 2024
    Configuration menu
    Copy the full SHA
    bca7fb0 View commit details
    Browse the repository at this point in the history
  2. [3.13] pythongh-119064: Use os_helper.FakePath instead of pathlib.Pat…

    …h in tests (pythonGH-119065) (pythonGH-119087)
    
    (cherry picked from commit 0152dc4)
    
    Co-authored-by: Serhiy Storchaka <[email protected]>
    miss-islington and serhiy-storchaka authored May 16, 2024
    Configuration menu
    Copy the full SHA
    1dc7fcd View commit details
    Browse the repository at this point in the history
  3. [3.13] Add Tkinter tests for different events (pythonGH-118778) (pyth…

    …onGH-119091)
    
    (cherry picked from commit b683994)
    
    Co-authored-by: Serhiy Storchaka <[email protected]>
    miss-islington and serhiy-storchaka authored May 16, 2024
    Configuration menu
    Copy the full SHA
    8a4730e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c69fe80 View commit details
    Browse the repository at this point in the history
  5. [3.13] Explain how to install LLVM on Fedora (pythonGH-119100)

    (cherry picked from commit ab73bcd)
    Co-authored-by: Miro Hrončok <[email protected]>
    Co-authored-by: Erlend E. Aasland <[email protected]>
    miss-islington authored May 16, 2024
    Configuration menu
    Copy the full SHA
    45fbca9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    acffe20 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. [3.13] Fix typos in documentation (pythonGH-119092) (python#119116)

    Fix typos in documentation (pythonGH-119092)
    (cherry picked from commit 65de194)
    
    Co-authored-by: Xie Yanbo <[email protected]>
    Co-authored-by: Alex Waygood <[email protected]>
    3 people authored May 17, 2024
    Configuration menu
    Copy the full SHA
    ada4ad0 View commit details
    Browse the repository at this point in the history
  2. [3.13] pythongh-119049: Fix incorrect display of warning which is con…

    …structed by C API (pythonGH-119063) (pythonGH-119106)
    
    The source line was not displayed if the warnings module had not yet
    been imported.
    (cherry picked from commit 100c7ab)
    
    Co-authored-by: Kirill Podoprigora <[email protected]>
    miss-islington and Eclips4 authored May 17, 2024
    Configuration menu
    Copy the full SHA
    ced71d3 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2024

  1. Configuration menu
    Copy the full SHA
    374655f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1bb3a9d View commit details
    Browse the repository at this point in the history
  3. [3.13] pythongh-119132: Log sys._is_gil_enabled() in test.pythoninfo (p…

    …ythonGH-119140) (python#119143)
    
    pythongh-119132: Log sys._is_gil_enabled() in test.pythoninfo (pythonGH-119140)
    (cherry picked from commit 74072a3)
    
    Co-authored-by: Victor Stinner <[email protected]>
    miss-islington and vstinner authored May 18, 2024
    Configuration menu
    Copy the full SHA
    9c2de86 View commit details
    Browse the repository at this point in the history
  4. [3.13] docs: make mimalloc license text literal (pythonGH-119046) (py…

    …thon#119149)
    
    docs: make mimalloc license text literal (pythonGH-119046)
    (cherry picked from commit 6914297)
    
    Co-authored-by: Rafael Fontenelle <[email protected]>
    miss-islington and rffontenelle authored May 18, 2024
    Configuration menu
    Copy the full SHA
    641e59d View commit details
    Browse the repository at this point in the history
  5. [3.13] pythongh-119132: Update sys.version to identify free-threaded …

    …or not. (pythongh-119134) (python#119153)
    
    pythongh-119132: Update sys.version to identify free-threaded or not. (pythongh-119134)
    (cherry picked from commit c141d43)
    
    Co-authored-by: Donghee Na <[email protected]>
    miss-islington and corona10 authored May 18, 2024
    Configuration menu
    Copy the full SHA
    ec88e9f View commit details
    Browse the repository at this point in the history
  6. [3.13] pythongh-119050: Add type hints to libregrtest/results.py (pyt…

    …honGH-119144) (python#119156)
    
    pythongh-119050: Add type hints to libregrtest/results.py (pythonGH-119144)
    
    Sort also 'omitted' in TestResults.display_result().
    (cherry picked from commit 30b4e9f)
    
    Co-authored-by: Victor Stinner <[email protected]>
    miss-islington and vstinner authored May 18, 2024
    Configuration menu
    Copy the full SHA
    9129614 View commit details
    Browse the repository at this point in the history
  7. [3.13] pythonGH-118447: Fix handling of unreadable symlinks in `os.pa…

    …th.realpath()` (pythonGH-118489) (python#119163)
    
    (cherry picked from commit caf6064)
    
    Co-authored-by: Barney Gale <[email protected]>
    Co-authored-by: Nice Zombies <[email protected]>
    3 people authored May 18, 2024
    Configuration menu
    Copy the full SHA
    7407267 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2024

  1. [3.13] marshal docs: Remove reference to "Sun" (pythonGH-119161) (pyt…

    …hon#119167)
    
    
    Nobody has been using a Sun machine for a long time. When I saw
    this sentence in a lightning talk just now, I thought it was talking
    about sending Python code on a spacecraft.
    (cherry picked from commit 697465f)
    
    Co-authored-by: Jelle Zijlstra <[email protected]>
    miss-islington and JelleZijlstra authored May 19, 2024
    Configuration menu
    Copy the full SHA
    bc5e47c View commit details
    Browse the repository at this point in the history
  2. [3.13] pythonGH-118447: Fix FreeBSD test failures. (pythonGH-119170) (p…

    …ython#119181)
    
    pythonGH-118447: Fix FreeBSD test failures. (pythonGH-119170)
    
    Apparently only macOS requires read permission to call `readlink()` on a
    symlink.
    (cherry picked from commit 4b76671)
    
    Co-authored-by: Barney Gale <[email protected]>
    miss-islington and barneygale authored May 19, 2024
    Configuration menu
    Copy the full SHA
    fdc50ba View commit details
    Browse the repository at this point in the history
  3. [3.13] pythonGH-119113: Raise TypeError from `pathlib.PurePath.with…

    …_suffix(None)` (pythonGH-119124) (python#119183)
    
    Restore behaviour from 3.12 when `path.with_suffix(None)` is called.
    (cherry picked from commit 3c28510)
    
    Co-authored-by: Barney Gale <[email protected]>
    miss-islington and barneygale authored May 19, 2024
    Configuration menu
    Copy the full SHA
    27b61c1 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2024

  1. [3.13] IDLE: fix url in config.py comment (pythonGH-119198) (python#1…

    …19199)
    
    IDLE: fix url in config.py comment (pythonGH-119198)
    (cherry picked from commit 357f5a1)
    
    Co-authored-by: Terry Jan Reedy <[email protected]>
    miss-islington and terryjreedy authored May 20, 2024
    Configuration menu
    Copy the full SHA
    3b90807 View commit details
    Browse the repository at this point in the history
  2. [3.13] pythongh-119121: Fix and test async.staggered.staggered_race (

    …pythonGH-119173) (python#119206)
    
    pythongh-119121: Fix and test `async.staggered.staggered_race` (pythonGH-119173)
    (cherry picked from commit 16b46eb)
    
    Co-authored-by: Nikita Sobolev <[email protected]>
    miss-islington and sobolevn authored May 20, 2024
    Configuration menu
    Copy the full SHA
    3a8ab99 View commit details
    Browse the repository at this point in the history
  3. [3.13] typing docs: Fix formatting issue (pythonGH-119210) (python#11…

    …9212)
    
    typing docs: Fix formatting issue (pythonGH-119210)
    (cherry picked from commit 72d07dd)
    
    Co-authored-by: David Foster <[email protected]>
    miss-islington and davidfstr authored May 20, 2024
    Configuration menu
    Copy the full SHA
    cbf064b View commit details
    Browse the repository at this point in the history
  4. [3.13] pythongh-119185: Fix typo in _pyrepl.pager: tempfilepager

    …should be `tempfile_pager` (pythonGH-118881) (python#119211)
    
    Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pager`
    
    The name with no underscore doesn't exist.
    (cherry picked from commit 05e1dce)
    
    Co-authored-by: Thanos <[email protected]>
    miss-islington and Sachaa-Thanasius authored May 20, 2024
    Configuration menu
    Copy the full SHA
    a52ed7e View commit details
    Browse the repository at this point in the history
  5. [3.13] [docs] TypeVarTuple default is keyword-only (pythonGH-119215) (p…

    …ython#119224)
    
    (cherry picked from commit e406b39)
    
    Co-authored-by: Sebastian Rittau <[email protected]>
    miss-islington and srittau authored May 20, 2024
    Configuration menu
    Copy the full SHA
    8f3fc01 View commit details
    Browse the repository at this point in the history
  6. [3.13] pythongh-115119: Fall back to bundled libmpdec if system libmp…

    …dec is not found (pythonGH-119196) (python#119217)
    
    (cherry picked from commit 642b25b)
    
    Co-authored-by: Erlend E. Aasland <[email protected]>
    miss-islington and erlend-aasland authored May 20, 2024
    Configuration menu
    Copy the full SHA
    e370b64 View commit details
    Browse the repository at this point in the history
  7. [3.13] pythonGH-119146: Don't run JIT CI on unrelated changes (python…

    …GH-119226)
    
    (cherry picked from commit 5307f44)
    Co-authored-by: Savannah Ostrowski <[email protected]>
    Co-authored-by: Alex Waygood <[email protected]>
    miss-islington authored May 20, 2024
    Configuration menu
    Copy the full SHA
    a6b873f View commit details
    Browse the repository at this point in the history
  8. [3.13] DOCS: Suggest always calling exec with a globals argument and …

    …no locals argument (pythonGH-119235) (python#119239)
    
    DOCS: Suggest always calling exec with a globals argument and no locals argument (pythonGH-119235)
    
    Many users think they want a locals argument for various reasons but they do not
    understand that it makes code be treated as a class definition. They do not want
    their code treated as a class definition and get surprised. The reason not
    to pass locals specifically is that the following code raises a `NameError`:
    
    ```py
    exec("""
    def f():
        print("hi")
    
    f()
    
    def g():
        f()
    g()
    """, {}, {})
    ```
    
    The reason not to leave out globals is as follows:
    
    ```py
    def t():
        exec("""
    def f():
        print("hi")
    
    f()
    
    def g():
        f()
    g()
        """)
    ```
    (cherry picked from commit 7e1a130)
    
    Co-authored-by: Hood Chatham <[email protected]>
    miss-islington and hoodmane authored May 20, 2024
    Configuration menu
    Copy the full SHA
    fda3291 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d8c562a View commit details
    Browse the repository at this point in the history
  10. [3.13] pythongh-92081: Fix for email.generator.Generator with whitesp…

    …ace between encoded words. (pythonGH-92281) (python#119245)
    
    * Fix for email.generator.Generator with whitespace between encoded words.
    
    email.generator.Generator currently does not handle whitespace between
    encoded words correctly when the encoded words span multiple lines.  The
    current generator will create an encoded word for each line.  If the end
    of the line happens to correspond with the end real word in the
    plaintext, the generator will place an unencoded space at the start of
    the subsequent lines to represent the whitespace between the plaintext
    words.
    
    A compliant decoder will strip all the whitespace from between two
    encoded words which leads to missing spaces in the round-tripped
    output.
    
    The fix for this is to make sure that whitespace between two encoded
    words ends up inside of one or the other of the encoded words.  This
    fix places the space inside of the second encoded word.
    
    A second problem happens with continuation lines.  A continuation line that
    starts with whitespace and is followed by a non-encoded word is fine because
    the newline between such continuation lines is defined as condensing to
    a single space character.  When the continuation line starts with whitespace
    followed by an encoded word, however, the RFCs specify that the word is run
    together with the encoded word on the previous line.  This is because normal
    words are filded on syntactic breaks by encoded words are not.
    
    The solution to this is to add the whitespace to the start of the encoded word
    on the continuation line.
    
    Test cases are from pythonGH-92081
    
    * Rename a variable so it's not confused with the final variable.
    (cherry picked from commit a6fdb31)
    
    Co-authored-by: Toshio Kuratomi <[email protected]>
    miss-islington and abadger authored May 20, 2024
    Configuration menu
    Copy the full SHA
    054f1af View commit details
    Browse the repository at this point in the history
  11. [3.13] Use correct markup in unittest.mock.reset_mock documentation (p…

    …ythonGH-119207) (pythonGH-119250)
    
    Use correct markup in unittest.mock.reset_mock documentation (pythonGH-119207)
    (cherry picked from commit 6b80a5b)
    
    Co-authored-by: Tialo <[email protected]>
    miss-islington and Tialo authored May 20, 2024
    Configuration menu
    Copy the full SHA
    906f6cb View commit details
    Browse the repository at this point in the history
  12. [3.13] pythongh-118760: Restore the default value of tkinter.wantobje…

    …cts to 1 (pythonGH-118784) (pythonGH-119251)
    
    It was set to 2 in 65f5e58 (pythonGH-98592).
    (cherry picked from commit e188527)
    
    Co-authored-by: Serhiy Storchaka <[email protected]>
    miss-islington and serhiy-storchaka authored May 20, 2024
    Configuration menu
    Copy the full SHA
    b4462aa View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    572b0b0 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    071d996 View commit details
    Browse the repository at this point in the history
  15. [3.13] pythongh-119050: Add XML support to libregrtest refleak checker (

    pythonGH-119148) (python#119270)
    
    pythongh-119050: Add XML support to libregrtest refleak checker (pythonGH-119148)
    
    regrtest test runner: Add XML support to the refleak checker
    (-R option).
    
    * run_unittest() now stores XML elements as string, rather than
      objects, in support.junit_xml_list.
    * runtest_refleak() now saves/restores XML strings before/after
      checking for reference leaks. Save XML into a temporary file.
    (cherry picked from commit 9257731)
    
    Co-authored-by: Victor Stinner <[email protected]>
    miss-islington and vstinner authored May 20, 2024
    Configuration menu
    Copy the full SHA
    42a8d11 View commit details
    Browse the repository at this point in the history
  16. [3.13] pythongh-108267 Fix another dataclasses docs typo (pythonGH-11…

    …9277) (python#119279)
    
    pythongh-108267 Fix another dataclasses docs typo (pythonGH-119277)
    (cherry picked from commit 423bbcb)
    
    Co-authored-by: Alex Waygood <[email protected]>
    miss-islington and AlexWaygood authored May 20, 2024
    Configuration menu
    Copy the full SHA
    d8fbe5b View commit details
    Browse the repository at this point in the history
  17. [3.13] pythongh-118912: Remove description of issue fixed in 3.5 from…

    … autospeccing guide (pythonGH-119232) (python#119284)
    
    pythongh-118912: Remove description of issue fixed in 3.5 from autospeccing guide (pythonGH-119232)
    
    * Remove description of issue fixed in 3.5 from autospeccing guide
    
    * Make autospeccing note text more succint and lint whitespace
    
    * Add linting changes (missed in last commit)
    
    ---------
    
    (cherry picked from commit 7e57640)
    
    Co-authored-by: Shauna <[email protected]>
    Co-authored-by: Carol Willing <[email protected]>
    3 people authored May 20, 2024
    Configuration menu
    Copy the full SHA
    24b0e8d View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. [3.13] pythongh-119174: Fix high DPI causes turtledemo(turtle-graphic…

    …s examples) windows blurry (pythonGH-119175) (python#119289)
    
    pythongh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (pythonGH-119175)
    
    ------
    
    (cherry picked from commit 538ed5e)
    
    Co-authored-by: Wulian233 <[email protected]>
    miss-islington and Wulian233 authored May 21, 2024
    Configuration menu
    Copy the full SHA
    f7303cd View commit details
    Browse the repository at this point in the history
  2. [3.13] pythongh-74929: PEP 667 general docs update (pythongh-119291)

    * expand on What's New entry for PEP 667 (including porting notes)
    * define 'optimized scope' as a glossary term
    * cover comprehensions and generator expressions in locals() docs
    * review all mentions of "locals" in documentation (updating if needed)
    * review all mentions of "f_locals" in documentation (updating if needed)
    
    (cherry picked from commit e870c85)
    
    Co-authored-by: Alyssa Coghlan <[email protected]>
    miss-islington and ncoghlan authored May 21, 2024
    Configuration menu
    Copy the full SHA
    db64dae View commit details
    Browse the repository at this point in the history
  3. [3.13] Use fail-fast: false in mypy.yml (pythonGH-119297) (python…

    …#119304)
    
    Use `fail-fast: false` in `mypy.yml` (pythonGH-119297)
    
    See docs about this setting: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actionsGH-jobsjob_idstrategyfail-fast
    (cherry picked from commit b365332)
    
    Co-authored-by: Nikita Sobolev <[email protected]>
    miss-islington and sobolevn authored May 21, 2024
    Configuration menu
    Copy the full SHA
    49ad4d0 View commit details
    Browse the repository at this point in the history
  4. [3.13] pythongh-119102: Fix REPL for dumb terminal (pythonGH-119269) (p…

    …ython#119308)
    
    pythongh-119102: Fix REPL for dumb terminal (pythonGH-119269)
    
    Use CAN_USE_PYREPL of _pyrepl.__main__ in the site module to decide
    if _pyrepl.write_history_file() can be used.
    (cherry picked from commit 73f4a58)
    
    Co-authored-by: Victor Stinner <[email protected]>
    miss-islington and vstinner authored May 21, 2024
    Configuration menu
    Copy the full SHA
    f028451 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1929b7e View commit details
    Browse the repository at this point in the history
  6. [3.13] pythongh-119053: Implement the fast path for list.__getitem__ (p…

    …ythongh-119112) (pythongh-119309)
    
    pythongh-119053: Implement the fast path for list.__getitem__ (pythongh-119112)
    (cherry picked from commit ab4263a)
    
    Co-authored-by: Donghee Na <[email protected]>
    miss-islington and corona10 authored May 21, 2024
    Configuration menu
    Copy the full SHA
    dcb8030 View commit details
    Browse the repository at this point in the history
  7. [3.13] pythonGH-119292: Add job to JIT CI to build and test with --di…

    …sable-gil (pythonGH-119314)
    
    (cherry picked from commit c4722cd)
    Co-authored-by: Savannah Ostrowski <[email protected]>
    Co-authored-by: Hugo van Kemenade <[email protected]>
    miss-islington authored May 21, 2024
    Configuration menu
    Copy the full SHA
    d93c4f9 View commit details
    Browse the repository at this point in the history
  8. [3.13] pythonGH-110383: Improve Tutorial for Input Ouput (pythonGH-11…

    …9230) (pythonGH-119326)
    
    pythonGH-110383: Improve Tutorial for Input Ouput (pythonGH-119230)
    
    (cherry picked from commit 9db2fd7)
    
    Co-authored-by: Blaise Pabon <[email protected]>
    Co-authored-by: edson duarte <[email protected]>
    3 people authored May 21, 2024
    Configuration menu
    Copy the full SHA
    11ca1d9 View commit details
    Browse the repository at this point in the history
  9. [3.13] pythongh-110383: Document socket.makefile() accepts combined…

    … modes (pythonGH-119150) (python#119324)
    
    The supported mode values are 'r', 'w', and 'b', or a combination of those.
    (cherry picked from commit 62a29be)
    
    Co-authored-by: Daniel Williams <[email protected]>
    miss-islington and squeakyboots authored May 21, 2024
    Configuration menu
    Copy the full SHA
    256b791 View commit details
    Browse the repository at this point in the history
  10. [3.13] pythongh-119035: Add Ctrl+← and Ctrl+→ word-skipping keybindin…

    …gs to new repl (pythonGH-119248) (python#119323)
    
    add word-skipping ctrl keybindings to new repl
    (cherry picked from commit 0398d93)
    
    Co-authored-by: Alastair Stanley <[email protected]>
    miss-islington and optim-ally authored May 21, 2024
    Configuration menu
    Copy the full SHA
    8860f83 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    fef202f View commit details
    Browse the repository at this point in the history
  12. [3.13] Docs: Add central references to free-threading-related options (

    …pythonGH-119017) (python#119367)
    
    Docs: Add central references to free-threading-related options (pythonGH-119017)
    (cherry picked from commit 9fa206a)
    
    Co-authored-by: Brett Simmers <[email protected]>
    miss-islington and swtaarrs authored May 21, 2024
    Configuration menu
    Copy the full SHA
    0582016 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. [3.13] pythongh-119102: Fix REPL for dumb terminal (pythonGH-119332) (p…

    …ython#119359)
    
    The site module gets the __main__ module to get _pyrepl.__main__.
    (cherry picked from commit de8f530)
    
    Co-authored-by: Victor Stinner <[email protected]>
    miss-islington and vstinner authored May 22, 2024
    Configuration menu
    Copy the full SHA
    f371565 View commit details
    Browse the repository at this point in the history
  2. pythongh-118507 : Refactor nt._path_is* to improve applicability fo…

    …r other cases (pythonGH-118755)
    
    (cherry picked from commit b641825)
    
    Co-authored-by: Nice Zombies <[email protected]>
    miss-islington and nineteendo authored May 22, 2024
    Configuration menu
    Copy the full SHA
    f15fbe9 View commit details
    Browse the repository at this point in the history
  3. [3.13] pythongh-118877: Fix AssertionError crash in pyrepl (pythonGH-…

    …118936) (python#119363)
    
    (cherry picked from commit c0d81b2)
    
    Co-authored-by: Daniel Hollas <[email protected]>
    miss-islington and danielhollas authored May 22, 2024
    Configuration menu
    Copy the full SHA
    e992217 View commit details
    Browse the repository at this point in the history
  4. [3.13] pythongh-110383: Align dict.get(), .fromkeys(), and .setdefaul…

    …t() docs with docstrings (pythonGH-119330) (python#119370)
    
    (cherry picked from commit 0e3c8cd)
    
    Co-authored-by: Landon Wood <[email protected]>
    miss-islington and johnlandonwood authored May 22, 2024
    Configuration menu
    Copy the full SHA
    455b386 View commit details
    Browse the repository at this point in the history
  5. [3.13] DOCS: fix error in exec namespace note (pythongh-119380)

    When updating the new exec note added in pythongh-119235 as part of the
    PEP 667 general docs PR, I suggested a workaround that isn't valid.
    
    The first half of the note is still reasonable, so just omit the invalid text.
    
    (cherry picked from commit 31d61a7)
    
    Co-authored-by: Alyssa Coghlan <[email protected]>
    miss-islington and ncoghlan authored May 22, 2024
    Configuration menu
    Copy the full SHA
    b5b0e32 View commit details
    Browse the repository at this point in the history
  6. [3.13] Clarify that dklen is expected in bytes for the hashlib functi…

    …ons (pythonGH-106624) (pythonGH-119383)
    
    (cherry picked from commit 5adf78f)
    
    Co-authored-by: Mathijs Mortimer <[email protected]>
    miss-islington and thiezn authored May 22, 2024
    Configuration menu
    Copy the full SHA
    f757996 View commit details
    Browse the repository at this point in the history
  7. [3.13] pythongh-119189: Add yet more tests for mixed Fraction arithme…

    …tic (pythonGH-119298) (pythonGH-119346)
    
    (cherry picked from commit 10b1bd9)
    
    Co-authored-by: Serhiy Storchaka <[email protected]>
    miss-islington and serhiy-storchaka authored May 22, 2024
    Configuration menu
    Copy the full SHA
    ec484b6 View commit details
    Browse the repository at this point in the history
  8. [3.13] Fix typos in NEWS entries for 3.13 (pythonGH-119374) (pythonGH…

    …-119385)
    
    (cherry picked from commit 904e256)
    
    Co-authored-by: Xie Yanbo <[email protected]>
    miss-islington and xyb authored May 22, 2024
    Configuration menu
    Copy the full SHA
    0e61989 View commit details
    Browse the repository at this point in the history
  9. [3.13] Fix version number in use_load_tests deprecation reference (py…

    …thonGH-119151) (pythonGH-119386)
    
    Deprecation took place in d78742a (3.5)
    (cherry picked from commit aee8f03)
    
    Co-authored-by: Jacob Walls <[email protected]>
    miss-islington and jacobtylerwalls authored May 22, 2024
    Configuration menu
    Copy the full SHA
    414346e View commit details
    Browse the repository at this point in the history
  10. [3.13] pythongh-118643: Fix AttributeError in the email module (pytho…

    …nGH-119099) (pythonGH-119389)
    
    Fix regression introduced in pythongh-100884: AttributeError when re-fold a long
    address list.
    
    Also fix more cases of incorrect encoding of the address separator in the
    address list missed in pythongh-100884.
    (cherry picked from commit 858b9e8)
    
    Co-authored-by: Serhiy Storchaka <[email protected]>
    miss-islington and serhiy-storchaka authored May 22, 2024
    Configuration menu
    Copy the full SHA
    6892b40 View commit details
    Browse the repository at this point in the history
  11. [3.13] pythongh-119306: Break up _pyrepl tests (pythonGH-119307) (pyt…

    …hon#119362)
    
    (cherry picked from commit f49df4f)
    
    Co-authored-by: Eugene Triguba <[email protected]>
    lysnikolaou and eugenetriguba authored May 22, 2024
    Configuration menu
    Copy the full SHA
    7214598 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ac91636 View commit details
    Browse the repository at this point in the history
  13. [3.13] pythongh-111201: Add append to screen method to avoid recalcul…

    …ation (pythonGH-119274) (python#119405)
    
    (cherry picked from commit c886bec)
    
    Co-authored-by: Lysandros Nikolaou <[email protected]>
    Co-authored-by: Łukasz Langa <[email protected]>
    3 people authored May 22, 2024
    Configuration menu
    Copy the full SHA
    aefe2e6 View commit details
    Browse the repository at this point in the history
  14. [3.13] pythongh-119205: Fix autocompletion bug in new repl (pythonGH-…

    …119229) (python#119407)
    
    (cherry picked from commit 506b1a3)
    
    Co-authored-by: Koudai Aono <[email protected]>
    Co-authored-by: Łukasz Langa <[email protected]>
    3 people authored May 22, 2024
    Configuration menu
    Copy the full SHA
    eafd633 View commit details
    Browse the repository at this point in the history
  15. [3.13] pythongh-118893: Evaluate all statements in the new REPL separ…

    …ately (pythonGH-119318) (python#119408)
    
    (cherry picked from commit a3e4fec)
    
    Co-authored-by: Pablo Galindo Salgado <[email protected]>
    Co-authored-by: Łukasz Langa <[email protected]>
    3 people authored May 22, 2024
    Configuration menu
    Copy the full SHA
    a463cd8 View commit details
    Browse the repository at this point in the history
  16. [3.13] pythongh-119213: Be More Careful About _PyArg_Parser.kwtuple A…

    …cross Interpreters (pythongh-119331) (pythongh-119410)
    
    _PyArg_Parser holds static global data generated for modules by Argument Clinic.  The _PyArg_Parser.kwtuple field is a tuple object, even though it's stored within a static global.  In some cases the tuple is statically allocated and thus it's okay that it gets shared by multiple interpreters.  However, in other cases the tuple is set lazily, allocated from the heap using the active interprepreter at the point the tuple is needed.
    
    This is a problem once that interpreter is destroyed since _PyArg_Parser.kwtuple becomes at dangling pointer, leading to crashes.  It isn't a problem if the tuple is allocated under the main interpreter, since its lifetime is bound to the lifetime of the runtime.  The solution here is to temporarily switch to the main interpreter.  The alternative would be to always statically allocate the tuple.
    
    This change also fixes a bug where only the most recent parser was added to the global linked list.
    
    (cherry picked from commit 8186500)
    
    Co-authored-by: Eric Snow <[email protected]>
    miss-islington and ericsnowcurrently authored May 22, 2024
    Configuration menu
    Copy the full SHA
    bfd9c3e View commit details
    Browse the repository at this point in the history
  17. [3.13] Improve pyrepl type-annotation coverage (pythonGH-119081) (p…

    …ython#119415)
    
    (cherry picked from commit 033f5c8)
    
    Co-authored-by: Alex Waygood <[email protected]>
    miss-islington and AlexWaygood authored May 22, 2024
    Configuration menu
    Copy the full SHA
    cd39da7 View commit details
    Browse the repository at this point in the history
  18. [3.13] pythongh-119247: Add macros to use PySequence_Fast safely in f…

    …ree-threaded build (pythonGH-119315) (python#119419)
    
    Add `Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST` and
    `Py_END_CRITICAL_SECTION_SEQUENCE_FAST` macros and update `str.join` to use
    them. Also add a regression test that would crash reliably without this
    patch.
    (cherry picked from commit baf347d)
    
    Co-authored-by: Josh {*()} Rosenberg <[email protected]>
    miss-islington and MojoVampire authored May 22, 2024
    Configuration menu
    Copy the full SHA
    0841606 View commit details
    Browse the repository at this point in the history
  19. [3.13] pythongh-112066: Fix versionadded in PyDict_SetDefaultRef docs (

    …pythonGH-118696) (python#119430)
    
    (cherry picked from commit 447edb6)
    
    Co-authored-by: Lysandros Nikolaou <[email protected]>
    miss-islington and lysnikolaou authored May 22, 2024
    Configuration menu
    Copy the full SHA
    0bd7c87 View commit details
    Browse the repository at this point in the history
  20. pythongh-117505: Run ensurepip in isolated env in Windows installer (p…

    …ythonGH-118257)
    
    ensurepip forks a subprocess to run pip itself, but that subprocess only inherits a -I isolated mode flag (see _run_pip() in Lib/ensurepip/__init__.py), not the "-E -s" flags that the installer has been using. This means that parts of ensurepip don't actually run in an isolated environment and can make incorrect decisions based on packages installed in the user site-packages.
    (cherry picked from commit c9073eb)
    
    Co-authored-by: Michael Vincent <[email protected]>
    miss-islington and Vynce authored May 22, 2024
    Configuration menu
    Copy the full SHA
    3e30a38 View commit details
    Browse the repository at this point in the history
  21. [3.13] pythongh-119357: Increase test coverage for keymap in _pyrepl (p…

    …ythonGH-119358) (python#119414)
    
    (cherry picked from commit 73ab83b)
    
    Co-authored-by: Eugene Triguba <[email protected]>
    Co-authored-by: Łukasz Langa <[email protected]>
    3 people authored May 22, 2024
    Configuration menu
    Copy the full SHA
    e6e4efc View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    6bc7fc0 View commit details
    Browse the repository at this point in the history
  23. [3.13] Enable some stricter mypy settings on Lib/_pyrepl (pythonGH-…

    …119077) (python#119428)
    
    (cherry picked from commit 0883fd2)
    
    Co-authored-by: Alex Waygood <[email protected]>
    miss-islington and AlexWaygood authored May 22, 2024
    Configuration menu
    Copy the full SHA
    81440c5 View commit details
    Browse the repository at this point in the history
  24. [3.13] pythongh-111201: auto-indentation in _pyrepl (pythonGH-119348) (

    …python#119427)
    
    (cherry picked from commit cd516cd)
    
    Co-authored-by: Arnon Yaari <[email protected]>
    Co-authored-by: Łukasz Langa <[email protected]>
    3 people authored May 22, 2024
    Configuration menu
    Copy the full SHA
    9435124 View commit details
    Browse the repository at this point in the history
  25. [3.13] pythongh-70795: Rework RLock documentation (pythonGH-103853) (p…

    …ython#119436)
    
    pythongh-70795: Rework RLock documentation (pythonGH-103853)
    
    Attempted to simultaneously reduce verbosity, while more descriptively
    describing behavior.
    
    Fix links (RLock acquire/release previously linking to Lock
    acquire/release, seems like bad copy pasta).
    
    Add a seealso for with-locks.
    
    Switch section to use bullet points.
    
    ---------
    
    (cherry picked from commit 2fbea81)
    
    Co-authored-by: uıɐɾ ʞ ʇɐɯɐs <[email protected]>
    Co-authored-by: Alex Waygood <[email protected]>
    Co-authored-by: C.A.M. Gerlach <[email protected]>
    4 people authored May 22, 2024
    Configuration menu
    Copy the full SHA
    a6ed742 View commit details
    Browse the repository at this point in the history
  26. [3.13] pythongh-117657: Fix missing atomic in dict_resize (pythonGH-1…

    …19312) (python#119417)
    
    pythongh-117657: Fix missing atomic in dict_resize (pythonGH-119312)
    
    Fix missing atomic in dict_resize
    (cherry picked from commit 2b3fb76)
    
    Co-authored-by: Dino Viehland <[email protected]>
    miss-islington and DinoV authored May 22, 2024
    Configuration menu
    Copy the full SHA
    cd35e9d View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. [3.13] pythongh-119434: Fix culmitive errors in wrapping as lines pro…

    …ceed (pythonGH-119435) (python#119441)
    
    Fix culmitive errors in wrapping as lines proceed
    (cherry picked from commit e3bf538)
    
    Co-authored-by: Dino Viehland <[email protected]>
    miss-islington and DinoV authored May 23, 2024
    Configuration menu
    Copy the full SHA
    dbff1f1 View commit details
    Browse the repository at this point in the history
  2. [3.13] pythongh-118911: Trailing whitespace in a block shouldn't prev…

    …ent the user from terminating the code block (pythonGH-119355) (python#119404)
    
    (cherry picked from commit 5091c44)
    
    Co-authored-by: Aya Elsayed <[email protected]>
    Co-authored-by: Łukasz Langa <[email protected]>
    3 people authored May 23, 2024
    Configuration menu
    Copy the full SHA
    9fa1b4f View commit details
    Browse the repository at this point in the history
  3. [3.13] pythongh-111201: Speed up paste mode in the REPL (python#119341)…

    … (pythonGH-119432) (python#119439)
    
    (cherry picked from commit e6572e8)
    
    Also includes:
    
    * pythongh-111201: Use calc_complete_screen after bracketed paste in PyREPL (pythonGH-119432)
    (cherry picked from commit 14b063c)
    
    Co-authored-by: Pablo Galindo Salgado <[email protected]>
    Co-authored-by: Łukasz Langa <[email protected]>
    Co-authored-by: Lysandros Nikolaou <[email protected]>
    4 people authored May 23, 2024
    Configuration menu
    Copy the full SHA
    58dbb4a View commit details
    Browse the repository at this point in the history
  4. [3.13] pythongh-90562: Mention slots pitfall in dataclass docs (pytho…

    …nGH-107391) (python#119350)
    
    Co-authored-by: Josh Cannon <[email protected]>
    Co-authored-by: Adam Turner <[email protected]>
    Co-authored-by: Jelle Zijlstra <[email protected]>
    Co-authored-by: Erlend E. Aasland <[email protected]>
    Co-authored-by: Hugo van Kemenade <[email protected]>
    6 people authored May 23, 2024
    Configuration menu
    Copy the full SHA
    89e2689 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dbe4f8a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    251ef2e View commit details
    Browse the repository at this point in the history
  7. [3.13] pythongh-119469: Fix _pyrepl reference leaks (pythonGH-119470) (

    …python#119471)
    
    (cherry picked from commit 6e012ce)
    
    Co-authored-by: Łukasz Langa <[email protected]>
    miss-islington and ambv authored May 23, 2024
    Configuration menu
    Copy the full SHA
    8fd8cc5 View commit details
    Browse the repository at this point in the history
  8. [3.13] pythongh-118727: Don't drop the GIL in drop_gil() unless the…

    … current thread holds it (pythonGH-118745) (python#119474)
    
    `drop_gil()` assumes that its caller is attached, which means that the current
    thread holds the GIL if and only if the GIL is enabled, and the enabled-state
    of the GIL won't change. This isn't true, though, because `detach_thread()`
    calls `_PyEval_ReleaseLock()` after detaching and
    `_PyThreadState_DeleteCurrent()` calls it after removing the current thread
    from consideration for stop-the-world requests (effectively detaching it).
    
    Fix this by remembering whether or not a thread acquired the GIL when it last
    attached, in `PyThreadState._status.holds_gil`, and check this in `drop_gil()`
    instead of `gil->enabled`.
    
    This fixes a crash in `test_multiprocessing_pool_circular_import()`, so I've
    reenabled it.
    (cherry picked from commit be1dfcc)
    
    Co-authored-by: Brett Simmers <[email protected]>
    miss-islington and swtaarrs authored May 23, 2024
    Configuration menu
    Copy the full SHA
    d98d6b1 View commit details
    Browse the repository at this point in the history
  9. [3.13] pythongh-119461: Fix ThreadedVSOCKSocketStreamTest (python#119465

    ) (python#119479)
    
    pythongh-119461: Fix ThreadedVSOCKSocketStreamTest (python#119465)
    
    Fix ThreadedVSOCKSocketStreamTest: if get_cid() returns the host
    address or the "any" address, use the local communication address
    (loopback): VMADDR_CID_LOCAL.
    
    On Linux 6.9, apparently, the /dev/vsock device is now available but
    get_cid() returns VMADDR_CID_ANY (-1).
    
    (cherry picked from commit e94dbe4)
    vstinner authored May 23, 2024
    Configuration menu
    Copy the full SHA
    c750061 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Configuration menu
    Copy the full SHA
    e27e369 View commit details
    Browse the repository at this point in the history
  2. [3.13] pythongh-118692: Avoid creating unnecessary StopIteration inst…

    …ances for monitoring (pythonGH-119216) (python#119497)
    
    * pythongh-118692: Avoid creating unnecessary StopIteration instances for monitoring (pythonGH-119216)
    (cherry picked from commit 6e9863d)
    
    ---------
    
    Co-authored-by: Irit Katriel <[email protected]>
    miss-islington and iritkatriel authored May 24, 2024
    Configuration menu
    Copy the full SHA
    c864efb View commit details
    Browse the repository at this point in the history
  3. [3.13] pythongh-69214: Fix fcntl.ioctl() request type (pythonGH-119498)…

    … (python#119504)
    
    pythongh-69214: Fix fcntl.ioctl() request type (pythonGH-119498)
    
    Use an 'unsigned long' instead of an 'unsigned int' for the request
    parameter of fcntl.ioctl() to support requests larger than UINT_MAX.
    (cherry picked from commit 92fab33)
    
    Co-authored-by: Victor Stinner <[email protected]>
    miss-islington and vstinner authored May 24, 2024
    Configuration menu
    Copy the full SHA
    0bab0b3 View commit details
    Browse the repository at this point in the history
  4. [3.13] pythonGH-119496: accept UTF-8 BOM in .pth files (pythonGH-119508)

    `Out-File -Encoding utf8` and similar commands in Windows Powershell 5.1 emit
    UTF-8 with a BOM marker, which the regular `utf-8` codec decodes incorrectly.
    
    `utf-8-sig` accepts a BOM, but also works correctly without one.
    
    This change also makes .pth files match the way Python source files are handled.
    
    (cherry picked from commit bf5b646)
    
    Co-authored-by: Alyssa Coghlan <[email protected]>
    Co-authored-by: Inada Naoki <[email protected]>
    3 people authored May 24, 2024
    Configuration menu
    Copy the full SHA
    217d57f View commit details
    Browse the repository at this point in the history
  5. pythongh-118263: Add additional arguments to path_t (Argument Clinic …

    …type) in posixmodule (pythonGH-118355)
    
    (cherry picked from commit 96b392d)
    
    Co-authored-by: Nice Zombies <[email protected]>
    miss-islington and nineteendo authored May 24, 2024
    Configuration menu
    Copy the full SHA
    cc38ee1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    392a3d8 View commit details
    Browse the repository at this point in the history
  7. [3.13] Misc improvement to the docs for itertools (pythongh-119529) (p…

    …ython#119531)
    
    Misc improvement to the docs for itertools (pythongh-119529)
    rhettinger authored May 24, 2024
    Configuration menu
    Copy the full SHA
    5544651 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2024

  1. [3.13] pythongh-111999: Fix the signature of str.format_map() (python…

    …GH-119540) (python#119543)
    
    (cherry picked from commit 08e6543)
    
    Co-authored-by: Serhiy Storchaka <[email protected]>
    miss-islington and serhiy-storchaka authored May 25, 2024
    Configuration menu
    Copy the full SHA
    f49749c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    317cc3b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2404cd9 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2024

  1. Configuration menu
    Copy the full SHA
    3f0198d View commit details
    Browse the repository at this point in the history
  2. [3.13] pythongh-111997: Fix argument count for LINE event and clarify…

    … type of argument counts. (pythonGH-119179) (pythonGH-119575)
    
    pythongh-111997: Fix argument count for LINE event and clarify type of argument counts. (pythonGH-119179)
    (cherry picked from commit 70b07aa)
    
    Co-authored-by: scoder <[email protected]>
    miss-islington and scoder authored May 26, 2024
    Configuration menu
    Copy the full SHA
    825a5ae View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Configuration menu
    Copy the full SHA
    46d7712 View commit details
    Browse the repository at this point in the history
  2. [3.13] pythongh-119467: Fix Py_buffer.format type and correct documen…

    …tation typo (pythonGH-119475) (python#119602)
    
    pythongh-119467: Fix Py_buffer.format type and correct documentation typo (pythonGH-119475)
    (cherry picked from commit 3b26cd8)
    
    Co-authored-by: Aditya Borikar <[email protected]>
    miss-islington and adiaholic authored May 27, 2024
    Configuration menu
    Copy the full SHA
    f1302c1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ba71835 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9edf010 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8117cb5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0a4a318 View commit details
    Browse the repository at this point in the history
  7. [3.13] pythongh-119560: Drop an Invalid Assert in PyState_FindModule() (

    pythongh-119561) (pythongh-119632)
    
    The assertion was added in pythongh-118532 but was based on the invalid assumption that PyState_FindModule() would only be called with an already-initialized module def.  I've added a test to make sure we don't make that assumption again.
    
    (cherry picked from commit 0c5ebe1)
    
    Co-authored-by: Eric Snow <[email protected]>
    miss-islington and ericsnowcurrently authored May 27, 2024
    Configuration menu
    Copy the full SHA
    bd9983c View commit details
    Browse the repository at this point in the history
  8. [3.13] pythongh-119584: Fix test_import Failed Assertion (pythongh-11…

    …9623) (pythongh-119633)
    
    The fix in pythongh-119561 introduced an assertion that doesn't hold true if any of the three new test extension modules are loaded more than once.  This is fine normally but breaks if the new test_check_state_first() is run more than once, which happens for refleak checking and with the regrtest --forever flag.  We fix that here by clearing each of the three modules after loading them.  We also tweak a check in _modules_by_index_check().
    
    (cherry picked from commit ae7b176)
    
    Co-authored-by: Eric Snow <[email protected]>
    miss-islington and ericsnowcurrently authored May 27, 2024
    Configuration menu
    Copy the full SHA
    660125f View commit details
    Browse the repository at this point in the history
  9. [3.13] pythongh-117398: Add multiphase support to _datetime (pythongh…

    …-119373) (pythongh-119636)
    
    This is minimal support.  Subinterpreters are not supported yet.  That will be addressed in a later change.
    
    (cherry picked from commit 3e8b609)
    
    Co-authored-by: Erlend E. Aasland <[email protected]>
    Co-authored-by: Eric Snow <[email protected]>
    3 people authored May 27, 2024
    Configuration menu
    Copy the full SHA
    d58ebf0 View commit details
    Browse the repository at this point in the history
  10. [3.13] pythongh-119317: findall instead of traverse for docutils nodes (

    pythonGH-119319) (python#119486)
    
    pythongh-119317: findall instead of traverse for docutils nodes (pythonGH-119319)
    (cherry picked from commit 0867bce)
    
    Co-authored-by: Carlos Meza <[email protected]>
    miss-islington and drts01 authored May 27, 2024
    Configuration menu
    Copy the full SHA
    7322ff1 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. [3.13] pythongh-117398: Revert pythongh-119636, Add multiphase suppor…

    …t to _datetime (python#119639)
    
    Revert "[3.13] pythongh-117398: Add multiphase support to _datetime (pythongh-119373) (pythongh-119636)"
    
    This reverts commit d58ebf0.
    ericsnowcurrently authored May 28, 2024
    Configuration menu
    Copy the full SHA
    9216a53 View commit details
    Browse the repository at this point in the history