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.
1 parent c11b3b1 commit 2a89343Copy full SHA for 2a89343
1 file changed
Python/pystate.c
@@ -592,6 +592,7 @@ PyState_RemoveModule(struct PyModuleDef* def)
592
Py_FatalError("PyState_RemoveModule: Module index out of bounds.");
593
return -1;
594
}
595
+ Py_INCREF(Py_None);
596
return PyList_SetItem(state->modules_by_index, index, Py_None);
597
598
0 commit comments