Do more robust test of whether global objects are accessible.
PyImport_ImportModule() is not guaranteed to return a module object. When another type of object was returned, the PyModule_GetDict() call return NULL and the subsequent GetItem() seg faulted. Bug fix candidate.
Showing
Please
register
or
sign in
to comment