Skip to content

Commit

Permalink
initialize __doc__ to None
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jan 7, 1995
1 parent 29ca26e commit 8b14b4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Objects/moduleobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8b14b4c

Please sign in to comment.