[issue42266] LOAD_ATTR cache does not fully replicate PyObject_GetAttr behavior

Pablo Galindo Salgado report at bugs.python.org
Wed Nov 4 17:53:07 EST 2020


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

We could also store the tag of the type object if is a descriptor and compare against that on the cache hit to check that our assumptions are valid. The price here would be an extra pointer on the cache per opcode that may not even be used most of the time.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42266>
_______________________________________


More information about the Python-bugs-list mailing list