]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
backport gvanrossum's checkin of
authorMichael W. Hudson <mwh@python.net>
Fri, 15 Mar 2002 10:35:36 +0000 (10:35 +0000)
committerMichael W. Hudson <mwh@python.net>
Fri, 15 Mar 2002 10:35:36 +0000 (10:35 +0000)
commit78f70880e2920bcb5b85ec3582ab4415fed0e265
treefa42781ee518b365f307fcc0110d91b6f6ab6395
parent8b23905d92efb1f4d0156b1ebef3ef01b743ad84
backport gvanrossum's checkin of
    revision 2.41 of moduleobject.c

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.
Objects/moduleobject.c