◐ Shell
clean mode source ↗

bpo-44337: Port LOAD_ATTR to PEP 659 adaptive interpreter by markshannon · Pull Request #26595 · python/cpython

Implements four specializations of LOAD_ATTR:

  • LOAD_ATTR_SLOT for slots.
  • LOAD_ATTR_SPLIT_KEYS for attributes in instance dictionaries that have split keys.
  • LOAD_ATTR_HINT for attributes in instance dictionaries that do not have split keys.
  • LOAD_ATTR_MODULE for module attributes

There are more specializations of LOAD_ATTR that we want to implement, but this PR is large enough already.

https://bugs.python.org/issue44337