Commit 29f88fa1 authored by Guido van Rossum's avatar Guido van Rossum

initialize __doc__ to None

parent 932894d5
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment