Tin mới
AlexWaygood:inspect-weakref-cache-key
GitHub CopilotWrite better code with AI
GitHub Copilot appDirect agents from issue to merge
CodespacesInstant dev environments
Code ReviewManage code changes
Code QualityEnforce quality at merge
GitHub Advanced SecurityFind and fix vulnerabilities
Code securitySecure your code as you build
Secret protectionStop leaks before they start
GitHub SponsorsFund open source developers
Copilot for BusinessEnterprise-grade AI features
Premium SupportEnterprise-grade 24/7 support
[3.12] getattr_static can result in reference leaks #118013
Merge branch 'main' into inspect-weakref-cache-key
Learn more about hiding disruptive comments
The reason will be displayed to describe this comment to others. Learn more.
Clear the cache anyway after running test_inspect, for extra safety
Merge branch 'main' into inspect-weakref-cache-key
All timings done with a fresh PGO-optimised build on main using a MacBook pro.
: Use weakrefs for the cache key in `inspect._shadowed…
bedevere-app Bot commented Apr 24, 2024
GH-118232 is a backport of this pull request to the 3.12 branch.
Understand the outlier benchmarks on 3.14 (main) vs. 3.13.0 faster-cpython/ideas#726