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 fad3ae2 commit 0c9b6a2Copy full SHA for 0c9b6a2
Python/specialize.c
@@ -1313,12 +1313,8 @@ specialize_load_global_lock_held(
1313
SPECIALIZATION_FAIL(LOAD_GLOBAL, SPEC_FAIL_LOAD_GLOBAL_NON_STRING_OR_SPLIT);
1314
goto fail;
1315
}
1316
-#ifdef Py_GIL_DISABLED
1317
PyObject *value;
1318
Py_ssize_t index = _PyDict_LookupIndexAndValue((PyDictObject *)globals, name, &value);
1319
-#else
1320
- Py_ssize_t index = _PyDictKeys_StringLookup(globals_keys, name);
1321
-#endif
1322
if (index == DKIX_ERROR) {
1323
SPECIALIZATION_FAIL(LOAD_GLOBAL, SPEC_FAIL_EXPECTED_ERROR);
1324
0 commit comments