]> granicus.if.org Git - python/commit
Do more robust test of whether global objects are accessible.
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 11 Jul 2002 22:01:40 +0000 (22:01 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 11 Jul 2002 22:01:40 +0000 (22:01 +0000)
commit0e1f7a82e9024555a57eb2371aeeb25d5bc15e6a
tree8f72db7a5b7c192dbbf803774d52a2d3df4de5da
parentf2a0473350d91065cb1ac14ca4b55d56eea1ed38
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.
Modules/cPickle.c