Staging
v0.5.1
https://github.com/python/cpython
Revision 78f70880e2920bcb5b85ec3582ab4415fed0e265 authored by Michael W. Hudson on 15 March 2002, 10:35:36 UTC, committed by Michael W. Hudson on 15 March 2002, 10:35:36 UTC
    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.
1 parent 8b23905
History
Tip revision: 78f70880e2920bcb5b85ec3582ab4415fed0e265 authored by Michael W. Hudson on 15 March 2002, 10:35:36 UTC
backport gvanrossum's checkin of
Tip revision: 78f7088
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.1 KB
LICENSE -rw-r--r-- 12.1 KB
Makefile.pre.in -rw-r--r-- 25.9 KB
PLAN.txt -rw-r--r-- 14.1 KB
README -rw-r--r-- 39.6 KB
acconfig.h -rw-r--r-- 7.5 KB
configure -rwxr-xr-x 209.1 KB
configure.in -rw-r--r-- 54.0 KB
install-sh -rwxr-xr-x 5.5 KB
pyconfig.h.in -rw-r--r-- 19.6 KB
setup.py -rw-r--r-- 34.4 KB

README

back to top