Uh oh!
There was an error while loading. Please reload this page.
GH-115651: Convert LOAD_MODULE_ATTR into LOAD_INLINE_CONST when the module is itself a constant. - #115711
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Fidget-Spinner
left a comment
There was a problem hiding this comment.
Generally looks good, just one change requested. Thanks!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
gvanrossum
left a comment
There was a problem hiding this comment.
I have some clarity concerns (based on how long it took me to follow what's happening here) but the basics look good, other than (I think) a missing break.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Fidget-Spinner
left a comment
There was a problem hiding this comment.
LGTM I just have a few questions
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…when the module is itself a constant. (pythonGH-115711)
…when the module is itself a constant. (pythonGH-115711)
…when the module is itself a constant. (pythonGH-115711)
Module attributes are global variables from other modules. It makes sense to convert them to constants as we already do for global variables.
LOAD_ATTR_MODULEto a constant where the module is already a constant #115651