diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-07-11 22:01:40 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-07-11 22:01:40 +0000 |
commit | 0e1f7a82e9024555a57eb2371aeeb25d5bc15e6a (patch) | |
tree | 8f72db7a5b7c192dbbf803774d52a2d3df4de5da /Include/Python.h | |
parent | f2a0473350d91065cb1ac14ca4b55d56eea1ed38 (diff) | |
download | cpython-git-0e1f7a82e9024555a57eb2371aeeb25d5bc15e6a.tar.gz |
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.
Diffstat (limited to 'Include/Python.h')
0 files changed, 0 insertions, 0 deletions