Optimise `inspect.getattr_static` · Issue #103193 · python/cpython · GitHub

github.com

Tin mới

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

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

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

3.12only security fixes

performancePerformance or resource usage

stdlibStandard Library Python modules in the Lib/ directory

type-featureA feature request or enhancement

Performance of typing._ProtocolMeta._get_protocol_attrs and isinstance #74690

gh-103193: Micro-optimise helper functions for inspect.getattr_static #103195

gh-103193: Use LBYL idioms rather than EAFP in inspect.getattr_static #103318

gh-103193: Speedup and inline inspect._is_type #103321

gh-103193: Celebrate performance improvements to inspect.getattr_static in 'What's New in Python 3.12' #103349

gh-103193: cache calls to inspect._shadowed_dict in inspect.getattr_static #104267

gh-103193: Improve getattr_static test coverage #104286

[3.11] gh-103193: Improve getattr_static test coverage (GH-104286) #104290

gh-103193: Fix refleaks in test_inspect and test_typing #104320