Fix for SF bug #529050 - ModuleType.__new__ crash.
There were several places that assumed the md_dict field was always set, but it needn't be. Fixed these to be more careful. I changed PyModule_GetDict() to initialize md_dict to a new dictionary if it's NULL. Bugfix candidate.
G
Guido van Rossum committed
cd637aae5665d40c405a173efd5d9f174e63bf5c
Parent: 6ccdccd