commit | 0e1f7a82e9024555a57eb2371aeeb25d5bc15e6a | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Thu Jul 11 22:01:40 2002 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Thu Jul 11 22:01:40 2002 +0000 |
tree | 8f72db7a5b7c192dbbf803774d52a2d3df4de5da | |
parent | f2a0473350d91065cb1ac14ca4b55d56eea1ed38 [diff] |
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.