Skip to content

Commits

Permalink
main
Switch branches/tags

Name already in use

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

Commits on Nov 20, 2023

  1. gh-112287: Speed up Tier 2 (uop) interpreter a little (#112286)

    This makes the Tier 2 interpreter a little faster.
    I calculated by about 3%,
    though I hesitate to claim an exact number.
    
    This starts by doubling the trace size limit (to 512),
    making it more likely that loops fit in a trace.
    
    The rest of the approach is to only load
    `oparg` and `operand` in cases that use them.
    The code generator know when these are used.
    
    For `oparg`, it will conditionally emit
    ```
    oparg = CURRENT_OPARG();
    ```
    at the top of the case block.
    (The `oparg` variable may be referenced multiple times
    by the instructions code block, so it must be in a variable.)
    
    For `operand`, it will use `CURRENT_OPERAND()` directly
    instead of referencing the `operand` variable,
    which no longer exists.
    (There is only one place where this will be used.)
    gvanrossum committed Nov 20, 2023
    Copy the full SHA
    8deb8bc View commit details
    Browse the repository at this point in the history
  2. gh-111848: Clean up RESERVE() macro (#112274)

    Also avoid compiler warnings about unused 'reserved' variable.
    gvanrossum committed Nov 20, 2023
    Copy the full SHA
    c4c6321 View commit details
    Browse the repository at this point in the history
  3. gh-106529: Make FOR_ITER a viable uop (#112134)

    This uses the new mechanism whereby certain uops
    are replaced by others during translation,
    using the `_PyUop_Replacements` table.
    We further special-case the `_FOR_ITER_TIER_TWO` uop
    to update the deoptimization target to point
    just past the corresponding `END_FOR` opcode.
    
    Two tiny code cleanups are also part of this PR.
    gvanrossum committed Nov 20, 2023
    Copy the full SHA
    1995955 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    d59feb5 View commit details
    Browse the repository at this point in the history
  5. gh-111863: Rename Py_NOGIL to Py_GIL_DISABLED (#111864)

    Rename Py_NOGIL to Py_GIL_DISABLED
    hugovk committed Nov 20, 2023
    Copy the full SHA
    3b3ec0d View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    1c8f912 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    56e59a4 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2023

  1. gh-73561: Omit interface scope from IPv6 when used as Host header (#9…

    …3324)
    
    Omit the `@interface_scope` from an IPv6 address when used as Host header by `http.client`.
    
    ---------
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google LLC]
    mib1185 committed Nov 19, 2023
    Copy the full SHA
    ce1096f View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    7c9f267 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    f812914 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    77d9f1e View commit details
    Browse the repository at this point in the history
  5. gh-110383: Explained which error message is generated when there is a…

    …n unhandled exception (#111574)
    
    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    Unique-Usman and hugovk committed Nov 19, 2023
    Copy the full SHA
    a6d25de View commit details
    Browse the repository at this point in the history
  6. gh-110383: Fix documentation profile cumtime fix (#112221)

    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    aptakhin and hugovk committed Nov 19, 2023
    Copy the full SHA
    6bf8f20 View commit details
    Browse the repository at this point in the history
  7. IDLE: Fix test_debugger bug and buildbot failures (#112258)

    Missing "requires('gui')" causes Tk() to fail when no gui.
    This caused CI Hypothesis test to fail, but I did not understand
    the its error message. Then buildbots failed.
    
    IdbTest failed on draft Bdb replacement because so different.
    Simplified version works on old and new.
    terryjreedy committed Nov 19, 2023
    Copy the full SHA
    14fd86a View commit details
    Browse the repository at this point in the history
  8. gh-79871: IDLE - Fix and test debugger module (#11451)

    Add docstrings to the debugger module. Fix two bugs: initialize Idb.botframe (should be in Bdb); In Idb.in_rpc_code, check whether prev_frame is None before trying to use it. Make other code changes.
    
    Expand test_debugger coverage from 19% to 66%.
    ---------
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    tonybaloney committed Nov 19, 2023
    Copy the full SHA
    adedcfa View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    18c6929 View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    2bcc0f7 View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    b8c952a View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2023

  1. Copy the full SHA
    1a969b4 View commit details
    Browse the repository at this point in the history
  2. gh-112213: Add @critical_section target directive to Argument Clinic (g…

    …h-112232)
    
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    corona10 and AlexWaygood committed Nov 18, 2023
    Copy the full SHA
    e52cc80 View commit details
    Browse the repository at this point in the history
  3. GH-110109: Test pure functionality of pathlib.Path user subclasses (#…

    …112242)
    
    Add `PurePathTest` as a superclass of `PathTest`, and therefore also
    `PathSubclassTest`. This adds coverage of pure functionality in user
    subclasses of `pathlib.Path`.
    
    Remove `PosixPathAsPureTest` and `WindowsPathAsPureTest`, as they
    now duplicate `PosixPathTest` and `WindowsPathTest`.
    
    This makes the MROs of test unit classes match the MROs of pathlib
    classes.
    barneygale committed Nov 18, 2023
    Copy the full SHA
    607b5e3 View commit details
    Browse the repository at this point in the history
  4. GH-110109: Fix misplaced tests for pathlib.WindowsPath.owner() and …

    …`group()` (#112239)
    
    Move test methods from `WindowsPathAsPureTest` to `WindowsPathTest` unit.
    The former test unit is intended to exercise only pure path functionality.
    barneygale committed Nov 18, 2023
    Copy the full SHA
    9c7c8ba View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    91d1730 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    0566ab9 View commit details
    Browse the repository at this point in the history
  7. gh-110319: Assert type_version != 0 before using it (#112226)

    - Ensure that `assert(type_version != 0);` always comes *before* using `type_version`
    
    Also:
    - In cases_generator, rename `-v` to from `--verbose` to `--viable`
    gvanrossum committed Nov 18, 2023
    Copy the full SHA
    eb3c94e View commit details
    Browse the repository at this point in the history
  8. gh-111810: Fix test_repr_deep from test_userlist on WASI (#112197)

    Co-authored-by: Brett Cannon <brett@python.org>
    sobolevn and brettcannon committed Nov 18, 2023
    Copy the full SHA
    43b1c33 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2023

  1. GH-111808: Make the default value for `test.support.infinite_recursio…

    …n()` conditional on compiler optimizations (GH-112223)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    brettcannon and vstinner committed Nov 17, 2023
    Copy the full SHA
    f489ace View commit details
    Browse the repository at this point in the history
  2. Fix typo in documentation of importlib.metadata (GH-112099)

    Fix minor typo in importlib doc
    CharlieZhao95 committed Nov 17, 2023
    Copy the full SHA
    dabc0d7 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    da314f7 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    cb5048e View commit details
    Browse the repository at this point in the history
  5. Various small improvements to uop debug output (#112218)

    - Show uop name in Error/DEOPT messages
    - Add target to some messages
    - Expose uop_name() as _PyUopName()
    gvanrossum committed Nov 17, 2023
    Copy the full SHA
    7405745 View commit details
    Browse the repository at this point in the history
  6. gh-106529: Cleanups split off gh-112134 (#112214)

    - Double max trace size to 256
    - Add a dependency on executor_cases.c.h for ceval.o
    - Mark `_SPECIALIZE_UNPACK_SEQUENCE` as `TIER_ONE_ONLY`
    - Add debug output back showing the optimized trace
    - Bunch of cleanups to Tools/cases_generator/
    gvanrossum committed Nov 17, 2023
    Copy the full SHA
    be0bd54 View commit details
    Browse the repository at this point in the history
  7. 2
    Copy the full SHA
    b414497 View commit details
    Browse the repository at this point in the history
  8. gh-112194: Convert more examples to doctests in typing.py (#112195)

    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    sobolevn and AlexWaygood committed Nov 17, 2023
    Copy the full SHA
    949b2cc View commit details
    Browse the repository at this point in the history
  9. GH-110109: Speed up pathlib._PathBase.resolve() (#110412)

    - Add fast path to `_split_stack()`
    - Skip unnecessarily resolution of the current directory when a relative
      path is given to `resolve()`
    - Remove stat and target caches, which slow down most `resolve()` calls in
      practice.
    - Slightly refactor code for clarity.
    barneygale committed Nov 17, 2023
    Copy the full SHA
    9fb0f2d View commit details
    Browse the repository at this point in the history
Older