Thanks to visit codestin.com Credit goes to github.com
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.
__getitem__
1 parent c5d18a5 commit 62a8a0cCopy full SHA for 62a8a0c
1 file changed
Python/specialize.c
@@ -1187,7 +1187,7 @@ _Py_Specialize_BinarySubscr(
1187
assert(cls->tp_version_tag != 0);
1188
cache0->version = cls->tp_version_tag;
1189
int version = _PyFunction_GetVersionForCurrentState(func);
1190
- if (version == 0) {
+ if (version == 0 || version != (uint16_t)version) {
1191
SPECIALIZATION_FAIL(BINARY_SUBSCR, SPEC_FAIL_OUT_OF_VERSIONS);
1192
goto fail;
1193
}
0 commit comments