Skip to content

gh-149436: Speed up inspect.getattr_static for the common-metaclass case#149437

Open
eendebakpt wants to merge 2 commits intopython:mainfrom
eendebakpt:inspect_shadowed_dict_type_fastpath
Open

gh-149436: Speed up inspect.getattr_static for the common-metaclass case#149437
eendebakpt wants to merge 2 commits intopython:mainfrom
eendebakpt:inspect_shadowed_dict_type_fastpath

Conversation

@eendebakpt
Copy link
Copy Markdown
Contributor

@eendebakpt eendebakpt commented May 5, 2026

For details see the corresponding issue.

eendebakpt added 2 commits May 5, 2026 20:51
Consecutive MRO entries usually share their metaclass, so call
_shadowed_dict at most once per distinct metaclass.
@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #32551603 | 📁 Comparing dbd9fcf against main (17975f9)

  🔍 Preview build  

43 files changed · ± 42 modified · - 1 deleted

± Modified

- Deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant