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 c93e3b0 commit 2d594f8Copy full SHA for 2d594f8
1 file changed
Python/pystate.c
@@ -532,6 +532,7 @@ PyState_RemoveModule(struct PyModuleDef* def)
532
Py_FatalError("PyState_RemoveModule: Module index out of bounds.");
533
return -1;
534
}
535
+ Py_INCREF(Py_None);
536
return PyList_SetItem(state->modules_by_index, index, Py_None);
537
538
0 commit comments