Commits
main
Name already in use
Commits on Nov 20, 2023
-
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.)
-
gh-111848: Clean up RESERVE() macro (#112274)
Also avoid compiler warnings about unused 'reserved' variable.
-
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.
Commits on Nov 19, 2023
-
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]
-
gh-112266: Remove
(if defined)
part from__dict__
and `__weakref_……_` docstrings (#112268)
-
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>
-
gh-110383: Fix documentation profile cumtime fix (#112221)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
-
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.
-
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>
Commits on Nov 18, 2023
-
gh-112213: Add @critical_section target directive to Argument Clinic (g…
…h-112232) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
-
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.
-
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.
-
gh-112234: Remove the toplevel parameter in converttuple() (GH-112235)
It is and always was 0.
-
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`
-
gh-111810: Fix
test_repr_deep
fromtest_userlist
on WASI (#112197)Co-authored-by: Brett Cannon <brett@python.org>
Commits on Nov 17, 2023
-
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>
-
Fix typo in documentation of
importlib.metadata
(GH-112099)Fix minor typo in importlib doc
-
-
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()
-
-
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.