Skip to content

gh-92041: Optimize inspect.getmodule lookup path#154403

Closed
GVN8R wants to merge 4 commits into
python:mainfrom
GVN8R:patch-1
Closed

gh-92041: Optimize inspect.getmodule lookup path#154403
GVN8R wants to merge 4 commits into
python:mainfrom
GVN8R:patch-1

Conversation

@GVN8R

@GVN8R GVN8R commented Jul 22, 2026

Copy link
Copy Markdown

Reduce overhead in inspect.getmodule. This includes changes such as replacing hasattr() / getattr() pairs with getattr( ... , None), and caching frequently accessed globals and dictionaries in local variables.

GVN8R added 2 commits July 20, 2026 23:03
Reduce overhead in inspect.getmodule(). This includes pretty minor changes, such as replacing hasattr() / getattr() pairs with               getattr( ... , None), and caching frequently accessed globals and dictionaries in local variables.
@bedevere-app

bedevere-app Bot commented Jul 22, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@python-cla-bot

python-cla-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@GVN8R GVN8R closed this Jul 22, 2026
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