[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST
Terry J. Reedy
report at bugs.python.org
Fri May 29 22:25:01 CEST 2009
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Martin, I agree that we would have to think carefully about all
attributes of all constants loaded by LOAD_CONST, and about
special-casing marshal, but given that "'str' object attribute 'join' is
read-only", how is ''.join not a constant? Do you have another example
in mind?
----------
nosy: +tjreedy
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6133>
_______________________________________
More information about the Python-bugs-list
mailing list