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

Merge latest main & fix conflicts #22

Open
wants to merge 1,727 commits into
base: wip-inspect-multi-signature
Choose a base branch
from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Oct 10, 2024

  1. Add some doctest cleanups for turtle and configparser (python#125288

    )
    
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    AlexWaygood and AA-Turner authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    a726ce7 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Configuration menu
    Copy the full SHA
    2f8301c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c1913ef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b12e992 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0135848 View commit details
    Browse the repository at this point in the history
  5. pythongh-61011: Fix inheritance of nested mutually exclusive groups i…

    …n argparse (pythonGH-125210)
    
    Previously, all nested mutually exclusive groups lost their connection
    to the group containing them and were displayed as belonging directly
    to the parser.
    
    Co-authored-by: Danica J. Sutherland <djsutherland@users.noreply.github.com>
    serhiy-storchaka and djsutherland authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    18c7449 View commit details
    Browse the repository at this point in the history
  6. pythongh-125235: Keep _tkinter TCL paths pointing to base installat…

    …ion on Windows (python#125250)
    
    Signed-off-by: y5c4l3 <y5c4l3@proton.me>
    y5c4l3 authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    b3aa1b5 View commit details
    Browse the repository at this point in the history
  7. pythongh-124787: Fix TypeAliasType and incorrect type_params (pyt…

    …hon#124795)
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    sobolevn and JelleZijlstra authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    2115d76 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    08f6bf7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a00221e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    cc2938a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    76b29d2 View commit details
    Browse the repository at this point in the history
  12. pythongh-119786: Move garbage collection doc from devguide to Interna…

    …lDocs (python#125282)
    
    Co-Authored-By: Carol Willing carolcode@willingconsulting.com
    Co-Authored-By: Ezio Melotti ezio.melotti@gmail.com
    Co-Authored-By: Hugo van Kemenade hugovk@users.noreply.github.com
    Co-Authored-By: Itamar Ostricher itamarost@gmail.com
    Co-Authored-By: Jesús Cea jcea@jcea.es
    Co-Authored-By: Joannah Nanjekye 33177550+nanjekyejoannah@users.noreply.github.com
    Co-Authored-By: Ned Batchelder ned@nedbatchelder.com
    Co-Authored-By: Pablo Galindo Salgado Pablogsal@gmail.com
    Co-Authored-By: Pamela Fox pamela.fox@gmail.com
    Co-Authored-By: Sam Gross colesbury@gmail.com
    Co-Authored-By: Stefan Pochmann 609905+pochmann@users.noreply.github.com
    Co-Authored-By: T. Wouters thomas@python.org
    Co-Authored-By: q-ata 24601033+q-ata@users.noreply.github.com
    Co-Authored-By: slateny 46876382+slateny@users.noreply.github.com
    Co-Authored-By: Борис Верховский boris.verk@gmail.com
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    Co-authored-by: Jacob Coffee <jacob@z7x.org>
    3 people authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    89515be View commit details
    Browse the repository at this point in the history
  13. pythongh-116938: Clarify documentation of dict and dict.update re…

    …garding the positional argument they accept (python#125213)
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    Viicos and AlexWaygood authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    21ac0a7 View commit details
    Browse the repository at this point in the history
  14. pythongh-124309: fix staggered race on eager tasks (python#124847)

    This patch is entirely by Thomas and Peter
    
    Co-authored-by: Thomas Grainger <tagrain@gmail.com>
    Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
    graingert and ZeroIntensity authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    979c0df View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2024

  1. Configuration menu
    Copy the full SHA
    5a074aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5d8739e View commit details
    Browse the repository at this point in the history
  3. pythongh-125196: Use PyUnicodeWriter in parser (python#125271)

    Replace the private _PyUnicodeWriter API with the public
    PyUnicodeWriter API in _PyPegen_concatenate_strings().
    vstinner authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    4a943c3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb2d268 View commit details
    Browse the repository at this point in the history
  5. pythongh-59330: Improve error message for dest= for positionals (pyth…

    …onGH-125215)
    
    Also improve the documentation. Specify how dest and metavar are derived
    from add_argument() positional arguments.
    
    Co-authored-by: Simon Law <sfllaw@sfllaw.ca>
    serhiy-storchaka and sfllaw authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    a6c0c64 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    07c2d15 View commit details
    Browse the repository at this point in the history
  7. pythongh-125254: Fix error report about ambiguous option in argparse (p…

    …ythonGH-125273)
    
    This was a regression introduced in pythongh-58573. It was only tested for the
    case when the ambiguous option is the last argument in the command line.
    serhiy-storchaka authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    63cf4e9 View commit details
    Browse the repository at this point in the history
  8. pythongh-85935: Check for nargs=0 for positional arguments in argparse (

    pythonGH-124839)
    
    Raise ValueError in add_argument() if either explicit nargs=0 or action
    that does not consume arguments (like 'store_const' or 'store_true') is
    specified for positional argument.
    serhiy-storchaka authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    9944ad3 View commit details
    Browse the repository at this point in the history
  9. pythongh-125260: Change the default gzip.compress() mtime to 0 (p…

    …ython#125261)
    
    This follows GNU gzip, which defaults to using 0 as the mtime
    for compressing stdin, where no file mtime is involved.
    
    This makes the output of gzip.compress() deterministic by default,
    greatly helping reproducible builds.
    
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    bmwiedemann and AA-Turner authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    dcd58c5 View commit details
    Browse the repository at this point in the history
  10. pythongh-53203: Fix strptime() for %c and %x formats on many locales (p…

    …ythonGH-124946)
    
    In some locales (like French or Hebrew) the full or abbreviated names of
    the default month and weekday used in __calc_date_time can be part of
    other name or constant part of the %c format. The month name can also
    match %m with constant suffix (like in Japanese). So the code failed to
    correctly distinguish formats %a, %A, %b, %B and %m.
    
    Cycle all month and all days of the week to find the variable part
    and distinguish %a from %A and %b from %B or %m.
    
    Fixed locales for the following languges:
    Arabic, Bislama, Breton, Bodo, Kashubian, Chuvash, Estonian, French, Irish,
    Ge'ez, Gurajati, Manx Gaelic, Hebrew, Hindi, Chhattisgarhi, Haitian Kreyol,
    Japanese, Kannada, Korean, Marathi, Malay, Norwegian, Nynorsk, Punjabi,
    Rajasthani, Tok Pisin, Yoruba, Yue Chinese, Yau/Nungon and Chinese.
    
    Co-authored-by: Eli Bendersky <eliben@gmail.com>
    serhiy-storchaka and eliben authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    c05f9dd View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    62d5a53 View commit details
    Browse the repository at this point in the history
  12. Prefer "similar" over "equivalent" in tutorial (python#125343)

    In the datastructures tutorial doc, some operations are described as
    "equivalent to" others. This has led to some user-confusion -- at
    least in the Discourse forums -- about cases in which the operations
    differ.
    
    This change doesn't systematically eliminate the word "equivalent"
    from the tutorial. It just substitutes "similar to" in several cases
    in which "equivalent to" could mislead users into expecting exact
    equivalence.
    sirosen authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    4a2282b View commit details
    Browse the repository at this point in the history
  13. pythongh-125289: Update sample code in asyncio-task.rst (pythonGH-125292

    )
    
    * Update sample code in asyncio-task.rst
    
    This will change **coroutines** sample code in the **Awaitables** section and make the example clearer.
    
    * Update Doc/library/asyncio-task.rst
    
    Revert the added print
    
    Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
    
    * Update Doc/library/asyncio-task.rst
    
    Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
    
    ---------
    
    Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
    galmyk and willingc authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    fa52b82 View commit details
    Browse the repository at this point in the history
  14. pythongh-124872: Change PyContext_WatchCallback to take PyObject (pyt…

    …hon#124737)
    
    The PyContext struct is not intended to be public, and users of the
    API don't need anything more specific than PyObject.  Also see
    pythongh-78943.
    rhansen authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    330c527 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2024

  1. Doc: Fix suggested usage of -X gil=0 in the glossary (python#125366)

    Currently, the "global interpreter lock" entry in the glossary mentions
    that `-X gil 0` can be used to disable the GIL [1]. However, this is
    invalid; the correct usage should be `-X gil=0`.
    
        $ python -X gil 0 -c 'print("Hello, world")'
        Fatal Python error: config_read_gil: PYTHON_GIL / -X gil must be "0" or "1"
        Python runtime state: preinitialized
    
        $ python -X gil=0 -c 'print("Hello, world")'
        Hello, world
    
    [1]: https://docs.python.org/3/using/cmdline.html#cmdoption-X
    
    Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
    ZhongRuoyu authored Oct 13, 2024
    Configuration menu
    Copy the full SHA
    a8fa4ad View commit details
    Browse the repository at this point in the history
  2. Trivial change: Update comments in activate about what running hash -…

    …r does (pythonGH-125385)
    
    Update comments about what running hash -r does
    
    The old comment said "hash -r" forgets "past commands." However, the documentation for "hash" states that it forgets past locations. The old comment was, in my opinion, confusing. This is because it could be interpreted to mean it does something to the command history (HISTORY/HISTFILE etc) vs the cache of locations.
    aathan authored Oct 13, 2024
    Configuration menu
    Copy the full SHA
    82bcaf1 View commit details
    Browse the repository at this point in the history
  3. pythongh-86673: Loosen test_ttk.test_identify() requirements (python#…

    …125335)
    
    In aeca373 (PR pythongh-12011, issue pythongh-71500), test_identify() was changed to expect different results on Darwin. Ned's fix was later adjusted by e52f9be. This workaround is only needed for some variants of Tk/Tcl on macOS, so we now allow both the workaround and the generic results for these tests.
    erlend-aasland authored Oct 13, 2024
    Configuration menu
    Copy the full SHA
    4197a79 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ce740d4 View commit details
    Browse the repository at this point in the history
  5. pythongh-125383: Update fib function comment for accuracy (python#1…

    …25386)
    
    `Doc/tutorial/controlflow.rst`: fix comment for `fib` function
    Wulian233 authored Oct 13, 2024
    Configuration menu
    Copy the full SHA
    283ea5f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    022c50d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0848932 View commit details
    Browse the repository at this point in the history
  8. pythongh-89967: make WeakKeyDictionary and WeakValueDictionary thread…

    … safe (python#125325)
    
    Make `WeakKeyDictionary` and `WeakValueDictionary` thread safe by copying the underlying the dict before iterating over it.
    kumaraditya303 authored Oct 13, 2024
    Configuration menu
    Copy the full SHA
    cd0f9d1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6c386b7 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e79bbd1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c6d7b64 View commit details
    Browse the repository at this point in the history
  12. pythonGH-125069: Fix inconsistent joining in `WindowsPath(PosixPath(.…

    …..))` (python#125156)
    
    `PurePath.__init__()` incorrectly uses the `_raw_paths` of a given
    `PurePath` object with a different flavour, even though the procedure to
    join path segments can differ between flavours.
    
    This change makes the `_raw_paths`-enabled deferred joining apply _only_
    when the path flavours match.
    
    Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
    barneygale and picnixz authored Oct 13, 2024
    Configuration menu
    Copy the full SHA
    cb8e599 View commit details
    Browse the repository at this point in the history
  13. pythongh-125243: Fix ZoneInfo data race in free threading build (pyth…

    …on#125281)
    
    Lock `ZoneInfoType` to protect accesses to `ZONEINFO_STRONG_CACHE`.
    Refactor the `tp_new` handler to use Argument Clinic so that we can just
    use `@critical_section` annotations on the relevant functions.
    
    Also use `PyDict_SetDefaultRef` instead of `PyDict_SetDefault` when
    inserting into the `TIMEDELTA_CACHE`.
    colesbury authored Oct 13, 2024
    Configuration menu
    Copy the full SHA
    f1d33db View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. pythongh-123133: clarify p=0 case for "f" and "e" formatting types (p…

    …ythonGH-125426)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    skirpichev and serhiy-storchaka authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    cfc27bc View commit details
    Browse the repository at this point in the history
  2. pythongh-86357: argparse: use str() consistently and explicitly to pr…

    …int choices (pythonGH-117766)
    
    Signed-off-by: Jan Chren ~rindeal <dev.rindeal@gmail.com>
    rindeal authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    66b3922 View commit details
    Browse the repository at this point in the history
  3. pythongh-121797: Add class method Fraction.from_number() (pythonGH-12…

    …1800)
    
    It is an alternative constructor which only accepts a single numeric argument.
    Unlike to Fraction.from_float() and Fraction.from_decimal() it accepts any
    real numbers supported by the standard constructor (int, float, Decimal,
    Rational numbers, objects with as_integer_ratio()).
    Unlike to the standard constructor, it does not accept strings.
    serhiy-storchaka authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    b52c730 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4b358ee View commit details
    Browse the repository at this point in the history
  5. pythongh-121798: Add class method Decimal.from_number() (pythonGH-121801

    )
    
    It is an alternate constructor which only accepts a single numeric argument.
    Unlike to Decimal.from_float() it accepts also Decimal.
    Unlike to the standard constructor, it does not accept strings and tuples.
    serhiy-storchaka authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    5217328 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    67f6e08 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    06ca330 View commit details
    Browse the repository at this point in the history
  8. pythongh-53203: Fix strptime() for %c, %x and %X formats on many loca…

    …les (pythonGH-125406)
    
    Fixed most locales that use non-ASCII digits, like Persian, Burmese,
    Odia and Shan.
    serhiy-storchaka authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    5f4e5b5 View commit details
    Browse the repository at this point in the history
  9. pythongh-124960: Fixed barry_as_FLUFL future flag does not work in …

    …new REPL (python#124999)
    
    Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    3 people authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    6a08a75 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c77121e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    45df264 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d5dbbf4 View commit details
    Browse the repository at this point in the history
  13. pythongh-125461: Remove Python 2 from identifiers in doc (pythonGH-12…

    …5462)
    
    Remove Python 2 from identifiers in doc
    paulehoffman authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    5dac0dc View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    187580d View commit details
    Browse the repository at this point in the history
  15. pythongh-125472: Revert "pythongh-124958: fix asyncio.TaskGroup and _…

    …PyFuture refcycles (python#12… (python#125476)
    
    Revert "pythongh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (python#124959)"
    
    This reverts commit d5dbbf4.
    Eclips4 authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    e99650b View commit details
    Browse the repository at this point in the history
  16. pythongh-124872: Replace enter/exit events with "switched" (python#12…

    …4776)
    
    Users want to know when the current context switches to a different
    context object.  Right now this happens when and only when a context
    is entered or exited, so the enter and exit events are synonymous with
    "switched".  However, if the changes proposed for pythongh-99633 are
    implemented, the current context will also switch for reasons other
    than context enter or exit.  Since users actually care about context
    switches and not enter or exit, replace the enter and exit events with
    a single switched event.
    
    The former exit event was emitted just before exiting the context.
    The new switched event is emitted after the context is exited to match
    the semantics users expect of an event with a past-tense name.  If
    users need the ability to clean up before the switch takes effect,
    another event type can be added in the future.  It is not added here
    because YAGNI.
    
    I skipped 0 in the enum as a matter of practice.  Skipping 0 makes it
    easier to troubleshoot when code forgets to set zeroed memory, and it
    aligns with best practices for other tools (e.g.,
    https://protobuf.dev/programming-guides/dos-donts/#unspecified-enum).
    rhansen authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    843d28f View commit details
    Browse the repository at this point in the history
  17. pythongh-125470: Fix warning in Python/generated_cases.c.h (python#…

    …125471)
    
    Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
    sobolevn and Eclips4 authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    0c8c665 View commit details
    Browse the repository at this point in the history
  18. Fix idlelib typos (python#125484)

    Propagate fixes in Doc/library/idle.rst to help.html.
    Change 'interruptable' to 'interruptible' in run.py.
    The latter was reported by ember91 in PR 125473.
    terryjreedy authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3fea1d0 View commit details
    Browse the repository at this point in the history
  19. pythongh-85453: Improve variable mark up for datetime.rst (python#120702

    )
    
    Variables and literals are marked up using backticks.
    uatach authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    2a5cdb2 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    1bffd7a View commit details
    Browse the repository at this point in the history
  21. pythongh-124958: Revert "pythongh-125472: Revert "pythongh-124958: fi…

    …x asyncio.TaskGroup and _PyFuture refcycles ... (python#125486)
    
    * Revert "pythongh-125472: Revert "pythongh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (python#12… (python#125476)"
    
    This reverts commit e99650b.
    
    * fix incompatability with pythongh-124392
    graingert authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    0b28ea4 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. pythongh-125269: Use AC_LINK_IF_ELSE to detect if -latomic is nee…

    …ded (python#125416)
    
    We previously used `AC_RUN_IF_ELSE` with a short test program to detect
    if `-latomic` is needed, but that requires choosing a specific default
    value when cross-compiling because the test program is not run.
    Some cross compilation targets like `wasm32-emscripten` do not support
    `-latomic`, while other cross compilation targets, like
    `arm-linux-gnueabi` require it.
    colesbury authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    8d42e2d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a2fe9ff View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    66064c3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    92af191 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    546dddc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    aa18fd5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fcef3fc View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cc5a225 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c8a1818 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    55c4f4c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d3c82b9 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    703227d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b903fc3 View commit details
    Browse the repository at this point in the history
  14. pythongh-125451: Skip concurrent.futures test_processes_terminate() (p…

    …ython#125533)
    
    The test hangs randomly. It tries to serialize local lock and a local
    function which are not possible.
    vstinner authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    c6e8ff8 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    bb9604b View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c9826c1 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e97910c View commit details
    Browse the repository at this point in the history
  18. pythongh-124375: Avoid calling _PyMem_ProcessDelayed on other threa…

    …d states (python#124459)
    
    This fixes a crash when running the PyO3 test suite on the free-threaded
    build. The `qsbr` field is initialized after the `PyThreadState` is
    added to the interpreter's linked list -- it might still be NULL.
    
    Instead, we "steal" the queue of to-be-freed memory blocks. This is
    always initialized (possibly empty) and protected by the stop the world
    pause.
    colesbury authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    54c6fcb View commit details
    Browse the repository at this point in the history
  19. pythongh-125206: Bug in ctypes with old libffi is fixed (python#125322)

    Workaround for old libffi versions is added.
    Module ctypes now supports C11 double complex only with libffi >= 3.3.0.
    
    Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
    efimov-mikhail and skirpichev authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    aac89b5 View commit details
    Browse the repository at this point in the history
  20. pythongh-92953: Improve nextpool/prevpool comment. (pythongh-125545)

    The meaning of these links depends on which list the pool is part of.
    They are only the same size class if on the "usedpools" list.
    nascheme authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    206de41 View commit details
    Browse the repository at this point in the history
  21. pythongh-124218: Use per-thread refcounts for code objects (python#12…

    …5216)
    
    Use per-thread refcounting for the reference from function objects to
    their corresponding code object. This can be a source of contention when
    frequently creating nested functions. Deferred refcounting alone isn't a
    great fit here because these references are on the heap and may be
    modified by other libraries.
    colesbury authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    3ea488a View commit details
    Browse the repository at this point in the history
  22. pythongh-125115: Pass unknown pdb command line args to script instead…

    … of fail (python#125424)
    
    Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
    gaogaotiantian and iritkatriel authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    9c2bb7d View commit details
    Browse the repository at this point in the history
  23. Python 3.14.0a1

    hugovk committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    8cdaca8 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    12eaadc View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    fee8fe5 View commit details
    Browse the repository at this point in the history
  26. Post 3.14.0a1

    hugovk committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    299d020 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    7453b8f View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    37e533a View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. pythongh-124872: Replace enter/exit events with "switched" (python#12…

    …5532)
    
    Users want to know when the current context switches to a different
    context object.  Right now this happens when and only when a context
    is entered or exited, so the enter and exit events are synonymous with
    "switched".  However, if the changes proposed for pythongh-99633 are
    implemented, the current context will also switch for reasons other
    than context enter or exit.  Since users actually care about context
    switches and not enter or exit, replace the enter and exit events with
    a single switched event.
    
    The former exit event was emitted just before exiting the context.
    The new switched event is emitted after the context is exited to match
    the semantics users expect of an event with a past-tense name.  If
    users need the ability to clean up before the switch takes effect,
    another event type can be added in the future.  It is not added here
    because YAGNI.
    
    I skipped 0 in the enum as a matter of practice.  Skipping 0 makes it
    easier to troubleshoot when code forgets to set zeroed memory, and it
    aligns with best practices for other tools (e.g.,
    https://protobuf.dev/programming-guides/dos-donts/#unspecified-enum).
    
    Co-authored-by: Richard Hansen <rhansen@rhansen.org>
    Co-authored-by: Victor Stinner <vstinner@python.org>
    3 people authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    bee112a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    51410d8 View commit details
    Browse the repository at this point in the history
  3. pythongh-125444: Fix illegal instruction for older Arm architectures (p…

    …ython#125574)
    
    On Arm v5 it is not possible to get the thread ID via c13 register
    hence the illegal instruction. The c13 register started to provide
    thread ID since Arm v6K architecture variant. Other variants of
    Arm v6 (T2, Z and base) don’t provide the thread ID via c13.
    For the sake of simplicity we group v5 and v6 together and
    consider that instructions for Arm v7 only.
    diegorusso authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    feda9aa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e4d90be View commit details
    Browse the repository at this point in the history
  5. CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (python#125592

    )
    
    * Bump mypy to 1.12 & Python to 3.13
    
    * Remove unnecessary `type: ignore`
    Eclips4 authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    d83fcf8 View commit details
    Browse the repository at this point in the history
  6. pythongh-125451: Fix deadlock in ProcessPoolExecutor shutdown (python…

    …#125492)
    
    There was a deadlock when `ProcessPoolExecutor` shuts down at the same
    time that a queueing thread handles an error processing a task.
    
    Don't use `_shutdown_lock` to protect the `_ThreadWakeup` pipes -- use
    an internal lock instead. This fixes the ordering deadlock where the
    `ExecutorManagerThread` holds the `_shutdown_lock` and joins the
    queueing thread, while the queueing thread is attempting to acquire the
    `_shutdown_lock` while closing the `_ThreadWakeup`.
    colesbury authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    760872e View commit details
    Browse the repository at this point in the history
  7. pythongh-125615: Fix grammar nit in tutorial's interactive interprete…

    …r appendix (pythonGH-125617)
    
    Replace "without ... nor" with "with neither ... nor"
    corneliusroemer authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    aab3210 View commit details
    Browse the repository at this point in the history
  8. pythongh-115382: Fix cross compiles when host and target use same SOABI

    Co-authored-by: Erlend E. Aasland <erlend@python.org>
    vfazio and erlend-aasland authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    aecbc2e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8e7b2a1 View commit details
    Browse the repository at this point in the history
  10. pythongh-125620: Remove unnecessary import of subprocess in spawnv_pa…

    …ssfds (python#125624)
    
    Remove unnecessary import of subprocess in multiprocessing.util.spawnv_passfds.
    furkanonder authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    a38fef4 View commit details
    Browse the repository at this point in the history
  11. pythongh-124694: Add concurrent.futures.InterpreterPoolExecutor (pyth…

    …ongh-124548)
    
    This is an implementation of InterpreterPoolExecutor that builds on ThreadPoolExecutor.
    
    (Note that this is not tied to PEP 734, which is strictly about adding a new stdlib module.)
    
    Possible future improvements:
    
    * support passing a script for the initializer or to submit()
    * support passing (most) arbitrary functions without pickling
    * support passing closures
    * optionally exec functions against __main__ instead of the their original module
    ericsnowcurrently authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    a5a7f5e View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. Configuration menu
    Copy the full SHA
    624be86 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b04496 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dbcc5ac View commit details
    Browse the repository at this point in the history
  4. pythongh-123153: Fix PGO builds with free-threading on Windows (pytho…

    …n#125607)
    
    * pythongh-123153: Fix PGO builds with free-threading
    
    * Redo how the #define works
    mdboom authored Oct 17, 2024
    Configuration menu
    Copy the full SHA
    37986e8 View commit details
    Browse the repository at this point in the history
  5. pythongh-125644: Update locations.md reference (python#125645)

    Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
    emmanuel-ferdman authored Oct 17, 2024
    Configuration menu
    Copy the full SHA
    0d88b99 View commit details
    Browse the repository at this point in the history
  6. pythonGH-99108: Make vectorized versions of Blake2 available on x86, …

    …too (python#125244)
    
    Accomplished by updating HACL* vendored code from hacl-star/hacl-star@a6a0949 to hacl-star/hacl-star@315a9e4
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    Co-authored-by: Zachary Ware <zach@python.org>
    3 people authored Oct 17, 2024
    Configuration menu
    Copy the full SHA
    528bbab View commit details
    Browse the repository at this point in the history
  7. pythongh-123370: Fix the canvas not clearing after running turtledemo…

    ….clock (python#123457)
    
    Rewriting the day and date every tick somehow prevented them from being removed either by clicking STOP or loading another example.  The solution is to rewrite them only when they change.
    Wulian233 authored Oct 17, 2024
    Configuration menu
    Copy the full SHA
    c124577 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0cb20f2 View commit details
    Browse the repository at this point in the history
  9. pythongh-52551: Fix encoding issues in strftime() (pythonGH-125193)

    Fix time.strftime(), the strftime() method and formatting of the
    datetime classes datetime, date and time.
    
    * Characters not encodable in the current locale are now acceptable in
      the format string.
    * Surrogate pairs and sequence of surrogatescape-encoded bytes are no
      longer recombinated.
    * Embedded null character no longer terminates the format string.
    
    This fixes also pythongh-78662 and pythongh-124531.
    serhiy-storchaka authored Oct 17, 2024
    Configuration menu
    Copy the full SHA
    ad3eac1 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    04d6dd2 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f203d1c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b454662 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    d8c8648 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c3164ae View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    7cf2dbc View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. Configuration menu
    Copy the full SHA
    77cebb1 View commit details
    Browse the repository at this point in the history
  2. pythongh-125620: Skip check_resource_tracker_death on NetBSD due to l…

    …ong wait for SIGKILL process termination (pythonGH-125621)
    
    * Skip test_resource_tracker_sigkill on NetBSD
    furkanonder authored Oct 18, 2024
    Configuration menu
    Copy the full SHA
    a0f5c8e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d358425 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    df75136 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    10c4c95 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cda0ec8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2e950e3 View commit details
    Browse the repository at this point in the history
  8. pythongh-125604: Move _Py_AuditHookEntry, etc. Out of pycore_runtime.h (

    pythongh-125605)
    
    This is essentially a cleanup, moving a handful of API declarations to the header files where they fit best, creating new ones when needed.
    
    We do the following:
    
    * add pycore_debug_offsets.h and move _Py_DebugOffsets, etc. there
    * inline struct _getargs_runtime_state and struct _gilstate_runtime_state in _PyRuntimeState
    * move struct _reftracer_runtime_state to the existing pycore_object_state.h
    * add pycore_audit.h and move to it _Py_AuditHookEntry , _PySys_Audit(), and _PySys_ClearAuditHooks
    * add audit.h and cpython/audit.h and move the existing audit-related API there
    *move the perfmap/trampoline API from cpython/sysmodule.h to cpython/ceval.h, and remove the now-empty cpython/sysmodule.h
    ericsnowcurrently authored Oct 18, 2024
    Configuration menu
    Copy the full SHA
    6d93690 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f8ba9fb View commit details
    Browse the repository at this point in the history
  10. pythongh-125207: Fix MSVC 1935 build with JIT (python#125209)

    * pythongh-125207: Use {0} array initializers
    
    * Simplify, as suggested in PR
    
    * Revert change to explicitly specify length
    mdboom authored Oct 18, 2024
    Configuration menu
    Copy the full SHA
    c8fd4b1 View commit details
    Browse the repository at this point in the history
  11. pythongh-124694: In test_interpreter_pool, Restore the Asyncio Event …

    …Loop Policy During Cleanup (pythongh-125708)
    
    This resolves a failure on the android buildbot.
    ericsnowcurrently authored Oct 18, 2024
    Configuration menu
    Copy the full SHA
    322f14e View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2024

  1. Configuration menu
    Copy the full SHA
    2bb7ab7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84074a4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a7443a1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4b421e8 View commit details
    Browse the repository at this point in the history
  5. pythongh-125398: Convert paths in venv activate script when using Git…

    … Bash under Windows (pythonGH-125399)
    
    * Convert paths in venv activate script when using Git Bash under Windows
    
    With python#112508 the check to converts paths when running on Windows was changed from using the non-posix environment variable `$OSTYPE` to using `uname` instead.
    
    However this missed the fact that when running under Git Bash on Windows, uname reports `MINGW*` (`$OSTYPE` is still `msys`).
    
    This results in `$PATH` being set to something like `D:\a\github-actions-shells\github-actions-shells\venv/Scripts:…`, instead of `/d/a/github-actions-shells/github-actions-shells/venv/Scripts`.
    
    Notably, the Git Bash is the bash shell that’s used for GitHub Actions Windows runners, and ships with VSCode.
    julienp authored Oct 19, 2024
    Configuration menu
    Copy the full SHA
    2a378db View commit details
    Browse the repository at this point in the history
  6. pythongh-124984: Enhance ssl thread safety (python#124993)

    Make SSL objects thread safe in Free Theaded build by
    using critical sections.
    
    Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
    ZeroIntensity and picnixz authored Oct 19, 2024
    Configuration menu
    Copy the full SHA
    4c53b25 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8f5e39d View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2024

  1. Configuration menu
    Copy the full SHA
    14cafe1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e924bb6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ed24702 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b3c6b2c View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. pythongh-99030: Added documentation links for types and exceptions (p…

    …ythonGH-123857)
    
    * Added documentation links for types and exceptions
    
    * Shortened description sentences
    
    * Change content
    
    * Change documentation
    
    * Move seealso
    
    * Add a spaces
    rruuaanng authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    9256be7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5c21fe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ded105a View commit details
    Browse the repository at this point in the history
  4. pythongh-125313: Prefer sys.base_* paths in Py_Get(Exec)Prefix de…

    …precation notes (python#125317)
    
    Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation notes.
    
    Signed-off-by: y5c4l3 <y5c4l3@proton.me>
    y5c4l3 authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    7d88140 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f36d37b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0cd2140 View commit details
    Browse the repository at this point in the history
  7. pythongh-125608: Trigger dictionary watchers when inline values change (

    python#125611)
    
    Dictionary watchers on an object's attributes dictionary
    (`object.__dict__`) were not triggered when the managed dictionary used
    the object's inline values.
    colesbury authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    5989eb7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3d1df3d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5b7a872 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d67bf2d View commit details
    Browse the repository at this point in the history
  11. Doc: C API: Move tp_dealloc paragraph to tp_dealloc section (pyth…

    …on#125737)
    
    It looks like commit 43cf44d
    (pythongh-31501) accidentally moved the paragraph to the `tp_finalize`
    section when the intent was to move it to the `tp_dealloc` section
    (according to the commit message).
    
    Also:
      * Convert the paragraph to a warning.
      * Apply the appropriate font style to `tp_dealloc`.
      * Unlinkify the first mention of `tp_dealloc` since the paragraph is
        already in the `tp_dealloc` section.
    rhansen authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    d880c83 View commit details
    Browse the repository at this point in the history
  12. pythongh-124218: Use per-thread reference counting for globals and bu…

    …iltins (python#125713)
    
    Use per-thread refcounting for the reference from function objects to
    the globals and builtins dictionaries.
    colesbury authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    9b0bfba View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    695814c View commit details
    Browse the repository at this point in the history
  14. pythongh-121459: Fix a couple of uses of `PyStackRef_FromPyObjectStea…

    …l` (python#125711)
    
    * Fix usage of PyStackRef_FromPyObjectSteal in CALL_TUPLE_1
    
    This was missed in pythongh-124894
    
    * Fix usage of PyStackRef_FromPyObjectSteal in _CALL_STR_1
    
    This was missed in pythongh-124894
    
    * Regenerate code
    mpage authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    de5a6c7 View commit details
    Browse the repository at this point in the history
  15. pythongh-125767: Fix pickling and copying of super objects (pythonGH-…

    …125781)
    
    Previously, copying a super object returned a copy of the instance
    invoking super(). Pickling a super object could pickle the instance
    invoking super() or fail, depending on its type and protocol.
    
    Now deep copying returns a new super object and pickling pickles the super
    object. Shallow copying returns the same super object.
    serhiy-storchaka authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    5ca4e34 View commit details
    Browse the repository at this point in the history
  16. pythongh-124969: Make locale.nl_langinfo(locale.ALT_DIGITS) returning…

    … a string again (pythonGH-125774)
    
    This is a follow up of pythonGH-124974. Only Glibc needed a fix.
    Now the returned value is a string consisting of semicolon-separated
    symbols on all Posix platforms.
    serhiy-storchaka authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    dcc4fb2 View commit details
    Browse the repository at this point in the history
  17. pythongh-53203: Fix test_strptime on Solaris (pythonGH-125785)

    Use fixed timezone.
    Skip roundtrip tests on locales with 2-digit year.
    serhiy-storchaka authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    9dde463 View commit details
    Browse the repository at this point in the history
  18. pythongh-125716: Raise an Exception If _globals_init() Fails In the _…

    …interpqueues Module (pythongh-125802)
    
    The fix applies to the _interpchannels module as well.
    
    I've also included a drive-by typo fix for _interpqueues.
    ericsnowcurrently authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    44f841f View commit details
    Browse the repository at this point in the history
  19. pythongh-124651: Quote template strings in venv activation scripts (p…

    …ythonGH-124712)
    
    This patch properly quotes template strings in `venv` activation
    scripts. This mitigates potential command injection.
    y5c4l3 authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    d48cc82 View commit details
    Browse the repository at this point in the history
  20. pythongh-125716: Use A Global Mutex When Initializing Global State Fo…

    …r The _interpqueues Module (pythongh-125803)
    
    This includes a drive-by cleanup in _queues_init() and _queues_fini().
    
    This change also applies to the _interpchannels module.
    ericsnowcurrently authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    4848b0b View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    d0bfff4 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Configuration menu
    Copy the full SHA
    03f9264 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4efe64a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c1bdbe8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    57e3c59 View commit details
    Browse the repository at this point in the history
  5. pythongh-125355: Rewrite parse_intermixed_args() in argparse (pythonG…

    …H-125356)
    
    * The parser no longer changes temporarily during parsing.
    * Default values are not processed twice.
    * Required mutually exclusive groups containing positional arguments are
      now supported.
    * The missing arguments report now includes the names of all required
      optional and positional arguments.
    * Unknown options can be intermixed with positional arguments in
      parse_known_intermixed_args().
    serhiy-storchaka authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    759a54d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    91ddde4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    079875e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    aaed91c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    34653bb View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2024

  1. Configuration menu
    Copy the full SHA
    c75ff2e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    834ba5a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    de0d5c6 View commit details
    Browse the repository at this point in the history
  4. pythongh-125286: Share the Main Refchain With Legacy Interpreters (py…

    …thongh-125709)
    
    They used to be shared, before 3.12.  Returning to sharing them resolves a failure on Py_TRACE_REFS builds.
    
    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    ericsnowcurrently and encukou authored Oct 23, 2024
    Configuration menu
    Copy the full SHA
    6f26d49 View commit details
    Browse the repository at this point in the history
  5. pythongh-125665: Update turtledemo docstrings with correct file names (

    …python#125691)
    
    Co-authored-by: Wulian <xiguawulian@gmail.com>
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    3 people authored Oct 23, 2024
    Configuration menu
    Copy the full SHA
    9c01db4 View commit details
    Browse the repository at this point in the history
  6. pythongh-121938: ctypes: Skip test of _pack_-ed struct with c_int64 o…

    …n x86 (pythonGH-125877)
    
    The current auto-generated tests don't cover this; it's instead
    tested manually.
    encukou authored Oct 23, 2024
    Configuration menu
    Copy the full SHA
    13c9fa3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8f2c0f7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d3be6f9 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Configuration menu
    Copy the full SHA
    c35b33b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b61fece View commit details
    Browse the repository at this point in the history
  3. pythongh-125859: Fix crash when gc.get_objects is called during GC (p…

    …ython#125882)
    
    This fixes a crash when `gc.get_objects()` or `gc.get_referrers()` is
    called during a GC in the free threading build.
    
    Switch to `_PyObjectStack` to avoid corrupting the `struct worklist`
    linked list maintained by the GC. Also, don't return objects that are frozen
    (`gc.freeze()`) or in the process of being collected to more closely match
    the behavior of the default build.
    colesbury authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    e545ead View commit details
    Browse the repository at this point in the history
  4. pythongh-125842: Fix sys.exit(0xffff_ffff) on Windows (python#125896)

    On Windows, `long` is a signed 32-bit integer so it can't represent
    `0xffff_ffff` without overflow. Windows exit codes are unsigned 32-bit
    integers, so if a child process exits with `-1`, it will be represented
    as `0xffff_ffff`.
    
    Also fix a number of other possible cases where `_Py_HandleSystemExit`
    could return with an exception set, leading to a `SystemError` (or
    fatal error in debug builds) later on during shutdown.
    colesbury authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    ad6110a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5003ad5 View commit details
    Browse the repository at this point in the history
  6. pythongh-124218: Avoid refcount contention on builtins module (python…

    …GH-125847)
    
    This replaces `_PyEval_BuiltinsFromGlobals` with
    `_PyDict_LoadBuiltinsFromGlobals`, which returns a new reference
    instead of a borrowed reference. Internally, the new function uses
    per-thread reference counting when possible to avoid contention on the
    refcount fields on the builtins module.
    colesbury authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    3c4a7fa View commit details
    Browse the repository at this point in the history
  7. pythongh-125864: Propagate pickle.loads() failures in `InterpreterP…

    …oolExecutor` (pythongh-125898)
    
    Authored-by: Peter Bierma <zintensitydev@gmail.com>
    ZeroIntensity authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    41bd9d9 View commit details
    Browse the repository at this point in the history
  8. pythongh-118950: Fix SSLProtocol.connection_lost not being called whe…

    …n OSError is thrown (python#118960)
    
    
    
    Co-authored-by: Kumar Aditya <kumaraditya@python.org>
    cjavad and kumaraditya303 authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    3f24bde View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    500f533 View commit details
    Browse the repository at this point in the history
  10. pythongh-125933: Add ARIA labels to select elements in the version sw…

    …itcher (python#125934)
    
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    Privat33r-dev and hugovk authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    1306f33 View commit details
    Browse the repository at this point in the history
  11. pythongh-125900: Clean-up logic around immortalization in free-thread…

    …ing (python#125901)
    
    * Remove `@suppress_immortalization` decorator
    * Make suppression flag per-thread instead of per-interpreter
    * Suppress immortalization in `eval()` to avoid refleaks in three tests
      (test_datetime.test_roundtrip, test_logging.test_config8_ok, and
       test_random.test_after_fork).
    * frozenset() is constant, but not a singleton. When run multiple times,
      the test could fail due to constant interning.
    colesbury authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    332356b View commit details
    Browse the repository at this point in the history
  12. pythongh-125245: Fix race condition when importing collections.abc (p…

    …ython#125415)
    
    If multiple threads concurrently imported `collections.abc`, some of the
    threads might incorrectly see the "shim" `Lib/collections/abc.py` module
    instead of the correct `Lib/_collections_abc.py` module.  This affected
    both the free threading build and the default GIL-enabled build.
    colesbury authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    fed501d View commit details
    Browse the repository at this point in the history
  13. pythongh-125940: Android: support 16 KB pages (python#125941)

    Modify Android build tooling to use 16kB pages.
    mhsmith authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    e68d4b0 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. pythongh-125942: Android: set stdout to errors="backslashreplace" (p…

    …ython#125943)
    
    Android stdout/err streams now use `backslashreplace` encoding to ensure readability of the Android log.
    mhsmith authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    b08570c View commit details
    Browse the repository at this point in the history
  2. Increase minimum Android API level to 24 (python#125946)

    Minimum Android API level has been increased to 24 (Android 7.0).
    mhsmith authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    371c537 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2513593 View commit details
    Browse the repository at this point in the history
  4. pythongh-123930: Correct test of attribute failure to account for iOS (

    …python#125959)
    
    Update a test of importing attributes from binary modules to account for iOS conditions.
    freakboy3742 authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    75401fe View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    da8673d View commit details
    Browse the repository at this point in the history
  6. pythongh-121654: Add PyType_Freeze() function (python#122457)

    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    vstinner and encukou authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    db96327 View commit details
    Browse the repository at this point in the history
  7. pythongh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_STR) (python#12…

    …5583)
    
    Replace PyUnicode_FromStringAndSize(NULL, 0)
    with Py_GetConstant(Py_CONSTANT_EMPTY_STR).
    vstinner authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    ebcc578 View commit details
    Browse the repository at this point in the history
  8. pythonGH-125789: fix fut._callbacks to always return a copy of call…

    …backs (python#125922)
    
    Fix `asyncio.Future._callbacks` to always return a copy of the internal list of callbacks to avoid mutation from user code affecting the internal state.
    kumaraditya303 authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    cae853e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    417c130 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7f6e884 View commit details
    Browse the repository at this point in the history
  11. pythongh-125783: Add tests to prevent regressions with the combinatio…

    …n of `ctypes` and metaclasses. (pythonGH-125881)
    junkmd authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    1384409 View commit details
    Browse the repository at this point in the history
  12. pythongh-125969: fix OOB in future_schedule_callbacks due to an evi…

    …l `call_soon` (python#125970)
    
    Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
    picnixz and asvetlov authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    c5b99f5 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2024

  1. Configuration menu
    Copy the full SHA
    8b7cdc5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    905eddc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a78d5b3 View commit details
    Browse the repository at this point in the history
  4. pythongh-89640: properly detect float word ordering on Linux (python#…

    …125571)
    
    autoconf-archive patch by Dan Amelang.
    erlend-aasland authored Oct 26, 2024
    Configuration menu
    Copy the full SHA
    26d6277 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f6cc7c8 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. Configuration menu
    Copy the full SHA
    51b012b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    44becb8 View commit details
    Browse the repository at this point in the history
  3. Android: Update tests for newly-available functions affected by SELin…

    …ux (python#126015)
    
    Skip tests on Android that involve use of SELinux-protected methods.
    mhsmith authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    c51b560 View commit details
    Browse the repository at this point in the history
  4. pythongh-125633: Add function ispackage to stdlib inspect (python…

    …#125634)
    
    ---------
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    Xiaokang2022 and blurb-it[bot] authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    dad3453 View commit details
    Browse the repository at this point in the history
  5. pythongh-126012: Add __class_getitem__ to memoryview (python#126013)

    Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
    Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
    3 people authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    dc76a4a View commit details
    Browse the repository at this point in the history
  6. pythongh-126018: Avoid aborting due to unnecessary assert in `sys.aud…

    …it` (python#126020)
    
    
    Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    3 people authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    80eec52 View commit details
    Browse the repository at this point in the history
  7. pythongh-125984: fix use-after-free on fut->fut_{callback,context}0

    … due to an evil `loop.__getattribute__` (python#126003)
    picnixz authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    f819d43 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0922a4a View commit details
    Browse the repository at this point in the history
  9. pythongh-125966: fix use-after-free on fut->fut_callback0 due to an…

    … evil callback's `__eq__` in asyncio (python#125967)
    picnixz authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    ed5059e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6870eb3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    19e93e2 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2024

  1. Configuration menu
    Copy the full SHA
    2544159 View commit details
    Browse the repository at this point in the history
  2. pythongh-126081: For PRs labeled with "type-feature", require a core …

    …review (pythonGH-126082)
    
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    ambv and hugovk authored Oct 28, 2024
    Configuration menu
    Copy the full SHA
    ced2691 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' into wip-inspect-multi-signature

     Conflicts:
    	Lib/inspect.py
    	Lib/pydoc.py
    	Lib/test/test_inspect/test_inspect.py
    skirpichev committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    796fd4a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e1190c0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dcda92f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b5b0634 View commit details
    Browse the repository at this point in the history
  7. pythongh-125985: Add free threading scaling micro benchmarks (python#…

    …125986)
    
    These consist of a number of short snippets that help identify scaling
    bottlenecks in the free threaded interpreter.
    
    The current bottlenecks are in calling functions in benchmarks that call
    functions (due to `LOAD_ATTR` not yet using deferred reference counting)
    and when accessing thread-local data.
    colesbury authored Oct 28, 2024
    Configuration menu
    Copy the full SHA
    00ea179 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    85799f1 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2024

  1. pythongh-124928: Emscripten node support: Clean up old node <= 16 fla…

    …gs (python#124929)
    
    Clean up configure flags for old node versions
    
    These flags are only needed for node <= 16. Node 16 has been end of life since
    October of 2023.
    hoodmane authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    dc2552d View commit details
    Browse the repository at this point in the history
  2. pythongh-126014: Ignore __pycache__-only folders in makefile tests (p…

    …ython#126066)
    
    Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
    sobolevn and tomasr8 authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    aeafaf4 View commit details
    Browse the repository at this point in the history
  3. Align functools.reduce() docstring with PEP-257 (python#126045)

    Yak-shave in preparation for Argument Clinic adaption in pythongh-125999.
    skirpichev authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    9b14083 View commit details
    Browse the repository at this point in the history
  4. pythongh-126106: Fix NULL possible derefrence in Modules/_ssl.c (p…

    …ython#126111)
    
    Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
    sobolevn and picnixz authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    a64a1c9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    67f5c5b View commit details
    Browse the repository at this point in the history
  6. pythonGH-125837: Split LOAD_CONST into three. (pythonGH-125972)

    * Add LOAD_CONST_IMMORTAL opcode
    
    * Add LOAD_SMALL_INT opcode
    
    * Remove RETURN_CONST opcode
    markshannon authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    faa3272 View commit details
    Browse the repository at this point in the history
  7. pythongh-122767: document "new style" formatting for complexes (pytho…

    …nGH-122848)
    
    
    Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
    skirpichev and picnixz authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    0bbbe15 View commit details
    Browse the repository at this point in the history
  8. pythongh-126105: Fix crash in ast module, when ._fields is deleted (

    python#126115)
    
    Previously, if the `ast.AST._fields` attribute was deleted, attempts to create a new `as`t node would crash due to the assumption that `_fields` always had a non-NULL value. Now it has been fixed by adding an extra check to ensure that `_fields` does not have a NULL value (this can happen when you manually remove `_fields` attribute).
    sobolevn authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    b2eaa75 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    aab58a9 View commit details
    Browse the repository at this point in the history
  10. Add lightweight comments to conf.py and update docs readme (pythonGH-…

    …126100)
    
    * Update contributing contact info in readme
    
    * Add lightweight comments to improve docs workflow understanding
    
    * Apply code review suggestions from @hugovk
    
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    
    * Add code review suggestion from @AA-Turner
    
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    
    * Update Doc/conf.py
    
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    
    * Update Doc/conf.py
    
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    
    * Update Doc/conf.py
    
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    3 people authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    9effa0f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    802d405 View commit details
    Browse the repository at this point in the history
  12. pythonGH-125866: Improve tests for pathname2url() and `url2pathname…

    …()` (python#125993)
    
    Merge `URL2PathNameTests` and `PathName2URLTests` test cases (which test
    only the Windows-specific implementations from `nturl2path`) into the main
    `Pathname_Tests` test case for these functions.
    
    Copy/port some test cases for `pathlib.Path.as_uri()` and `from_uri()`.
    barneygale authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    6742f14 View commit details
    Browse the repository at this point in the history
  13. pythongh-124932: Distinguish build prefix from host prefix in cross b…

    …uilds (python#124933)
    
    In Emscripten and other cross builds, the build file system and the host file
    system look different. For instance, we may want to install into
    `cross-build/$TARGET/lib`, and then mount that as `/lib` in the host file
    system. This change adds a distinction between:
    
    * `prefix` -- the path in the build file system where we want to install the files
    * `host_prefix` -- the path in the host file system where getpath.c will look for the files
    
    And similarly for `exec_prefix` and `host_exec_prefix`. At present, this is only
    used for Emscripten.
    hoodmane authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    b1f13bc View commit details
    Browse the repository at this point in the history
  14. pythongh-126146: Remove __cmp__ method from tests (python#126147)

    Remove ``__cmp__`` method from the tests because it was removed in 3.0 version.
    Eclips4 authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    4877e33 View commit details
    Browse the repository at this point in the history
  15. pythongh-116938: Fix dict.update docstring and remove erraneous ful…

    …l stop from `dict` documentation (python#125421)
    
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    Prometheus3375 and AA-Turner authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    5527c40 View commit details
    Browse the repository at this point in the history
  16. bpo-41793: Fix an inaccuracy about reflected methods in datamodel docs (

    pythonGH-22257)
    
    * Qualifying that the right operand's type must be a *strict* subclass for the reflected method to take precedence avoids an edge case / counter-example when the types are actually equal.
    
    Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
    wimglenn and ethanfurman authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    298e041 View commit details
    Browse the repository at this point in the history
  17. Doc: Note that pydoc uses and prefers MANPAGER (python#125362)

    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    mancellin and AA-Turner authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    0e45b1f View commit details
    Browse the repository at this point in the history
  18. pythongh-125588: Teach the python PEG generator the new f-string toke…

    …ns (python#125589)
    
    Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
    pablogsal authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    9dfef4e View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    224c370 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. Configuration menu
    Copy the full SHA
    2d9d101 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2d37c71 View commit details
    Browse the repository at this point in the history
  3. pythongh-58032: Docs: Sort argparse alphabetically (pythonGH-125871)

    Sort argparse alphabetically
    hugovk authored Oct 30, 2024
    Configuration menu
    Copy the full SHA
    d4b6d84 View commit details
    Browse the repository at this point in the history
  4. pythongh-118633: Add warning regarding the unsafe usage of eval and e…

    …xec (pythonGH-118437)
    
    * Add warning regarding the unsafe usage of eval
    
    * Add warning regarding the unsafe usage of exec
    
    * Move warning under parameters table
    
    * Use suggested shorter text
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    
    * Use suggested shorter text
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    
    * Improve wording as suggested
    
    ---------
    
    Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    3 people authored Oct 30, 2024
    Configuration menu
    Copy the full SHA
    00e5ec0 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'master' into wip-inspect-multi-signature

     Conflicts:
    	Objects/dictobject.c
    skirpichev committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    ce653aa View commit details
    Browse the repository at this point in the history