summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-07 11:59:29 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-07 11:59:29 (GMT)
commit8b14b4c733cb745410c00a0fe63d3e604e53954f (patch)
tree8a1fcf45e4c2dcdc163c7be21da254b73a2483ce /Objects
parent29ca26eebf85b1919e0dae2e41e066334fbe7e9a (diff)
downloadcpython-8b14b4c733cb745410c00a0fe63d3e604e53954f.zip
cpython-8b14b4c733cb745410c00a0fe63d3e604e53954f.tar.gz
cpython-8b14b4c733cb745410c00a0fe63d3e604e53954f.tar.bz2
initialize __doc__ to None
Diffstat (limited to 'Objects')
-rw-r--r--Objects/moduleobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index 8ab2f45..9d8e182 100644
--- a/Objects/moduleobject.c
+++ b/Objects/moduleobject.c
@@ -47,6 +47,8 @@ newmoduleobject(name)
goto fail;
if (dictinsert(m->md_dict, "__name__", nameobj) != 0)
goto fail;
+ if (dictinsert(m->md_dict, "__doc__", None) != 0)
+ goto fail;
DECREF(nameobj);
return (object *)m;