diff options
author | Guido van Rossum <guido@python.org> | 1995-01-07 11:59:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-07 11:59:29 (GMT) |
commit | 8b14b4c733cb745410c00a0fe63d3e604e53954f (patch) | |
tree | 8a1fcf45e4c2dcdc163c7be21da254b73a2483ce /Objects/moduleobject.c | |
parent | 29ca26eebf85b1919e0dae2e41e066334fbe7e9a (diff) | |
download | cpython-8b14b4c733cb745410c00a0fe63d3e604e53954f.zip cpython-8b14b4c733cb745410c00a0fe63d3e604e53954f.tar.gz cpython-8b14b4c733cb745410c00a0fe63d3e604e53954f.tar.bz2 |
initialize __doc__ to None
Diffstat (limited to 'Objects/moduleobject.c')
-rw-r--r-- | Objects/moduleobject.c | 2 |
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; |