initialize __doc__ to None

This commit is contained in:
Guido van Rossum 1995-01-07 11:59:29 +00:00
parent 29ca26eebf
commit 8b14b4c733
1 changed files with 2 additions and 0 deletions

View File

@ -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;