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.
1 parent ecfd199 commit 9fda5dbCopy full SHA for 9fda5db
Python/specialize.c
@@ -976,7 +976,8 @@ specialize_inline_values_access_lock_held(
976
_PyAttrCache *cache = (_PyAttrCache *)(instr + 1);
977
assert(PyUnicode_CheckExact(name));
978
_Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(owner);
979
- Py_ssize_t index = _PyDictKeys_StringLookup(keys, name);
+ uint32_t version;
980
+ Py_ssize_t index = _PyDictKeys_StringLookupAndVersion(keys, name, &version);
981
assert (index != DKIX_ERROR);
982
if (index == DKIX_EMPTY) {
983
SPECIALIZATION_FAIL(base_op, SPEC_FAIL_ATTR_NOT_IN_KEYS);
0 commit comments