[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

Martin v. Löwis report at bugs.python.org
Thu May 28 23:51:27 CEST 2009


Martin v. Löwis <martin at v.loewis.de> added the comment:

-1. const.attr is not necessarily a constant. Indeed, "".join is *not* a
constant.

Furthermore, using this approach will lead to an endless series of types
to be added to marshalling, which is bad. For example, I believe that
current patch breaks on "".__class__

----------
nosy: +loewis

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6133>
_______________________________________


More information about the Python-bugs-list mailing list