We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
LOAD_ATTR_MODULE
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expressions like mod.attr, where mod is a module, are in almost all cases effectively constants.
mod.attr
mod
We should optimize them as such. We already treat the mod as a constant, so it is a relatively simple step to treat mod.attr as a constant.
LOAD_MODULE_ATTR
LOAD_INLINE_CONST
The text was updated successfully, but these errors were encountered:
GH-115651: Convert LOAD_MODULE_ATTR into LOAD_INLINE_CONST when t…
b348313
…he module is itself a constant. (GH-115711)
Can this be closed now?
Sorry, something went wrong.
pythonGH-115651: Convert LOAD_MODULE_ATTR into LOAD_INLINE_CONST …
22bf92e
…when the module is itself a constant. (pythonGH-115711)
ecaee49
8f854d1
markshannon
No branches or pull requests
Expressions like
mod.attr
, wheremod
is a module, are in almost all cases effectively constants.We should optimize them as such.
We already treat the
mod
as a constant, so it is a relatively simple step to treatmod.attr
as a constant.Linked PRs
LOAD_MODULE_ATTR
intoLOAD_INLINE_CONST
when the module is itself a constant. #115711The text was updated successfully, but these errors were encountered: