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 0c1e7e1 commit af7160bCopy full SHA for af7160b
1 file changed
Python/specialize.c
@@ -647,8 +647,8 @@ specialize_dict_access_hint(
647
PyObject *value;
648
Py_ssize_t index = _PyDict_LookupIndexAndValue(dict, name, &value);
649
if (value != NULL && PyLazyImport_CheckExact(value)) {
650
- SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_MODULE_LAZY_VALUE);
651
- return -1;
+ SPECIALIZATION_FAIL(base_op, SPEC_FAIL_ATTR_MODULE_LAZY_VALUE);
+ return 0;
652
}
653
if (index != (uint16_t)index) {
654
SPECIALIZATION_FAIL(base_op,
0 commit comments