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 1692917 commit c25ed81Copy full SHA for c25ed81
graalpython/com.oracle.graal.python.cext/src/import.c
@@ -66,6 +66,11 @@ PyObject* PyImport_GetModuleDict() {
66
return UPCALL_CEXT_O(_jls_PyImport_GetModuleDict);
67
}
68
69
+int _PyImport_SetModule(PyObject *name, PyObject *m) {
70
+ PyObject *modules = PyImport_GetModuleDict();
71
+ return PyObject_SetItem(modules, name, m);
72
+}
73
+
74
PyObject* _PyImport_AddModuleObject(PyObject *name, PyObject *modules) {
75
PyObject* m = PyObject_GetItem(modules, name);
76
if (PyErr_ExceptionMatches(PyExc_KeyError)) {
0 commit comments