We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
STORE_ATTR_INSTANCE_VALUE
1 parent 3e0f748 commit 8b7e7ebCopy full SHA for 8b7e7eb
Python/specialize.c
@@ -947,7 +947,10 @@ specialize_dict_access(
947
return 0;
948
}
949
_PyAttrCache *cache = (_PyAttrCache *)(instr + 1);
950
- if (type->tp_flags & Py_TPFLAGS_INLINE_VALUES && _PyObject_InlineValues(owner)->valid) {
+ if (type->tp_flags & Py_TPFLAGS_INLINE_VALUES &&
951
+ _PyObject_InlineValues(owner)->valid &&
952
+ !(base_op == STORE_ATTR && _PyObject_GetManagedDict(owner) != NULL))
953
+ {
954
PyDictKeysObject *keys = ((PyHeapTypeObject *)type)->ht_cached_keys;
955
assert(PyUnicode_CheckExact(name));
956
Py_ssize_t index = _PyDictKeys_StringLookup(keys, name);
0 commit comments