mirror of
https://github.com/python/cpython.git
synced 2026-05-29 15:45:56 -04:00
cd637aae56
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.