summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2007-12-03 12:55:17 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2007-12-03 12:55:17 (GMT)
commitef01d822aaea11ae25f78cb0be32865a5df07620 (patch)
tree0fbbaa653cb033490019809a9eb8b3c3ac942c74 /Objects
parentf19b95112669db32556c157c04f064d319c11f09 (diff)
downloadcpython-ef01d822aaea11ae25f78cb0be32865a5df07620.zip
cpython-ef01d822aaea11ae25f78cb0be32865a5df07620.tar.gz
cpython-ef01d822aaea11ae25f78cb0be32865a5df07620.tar.bz2
Implement PEP 366
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 9585795..5e3c293 100644
--- a/Objects/moduleobject.c
+++ b/Objects/moduleobject.c
@@ -30,6 +30,8 @@ PyModule_New(const char *name)
goto fail;
if (PyDict_SetItemString(m->md_dict, "__doc__", Py_None) != 0)
goto fail;
+ if (PyDict_SetItemString(m->md_dict, "__package__", Py_None) != 0)
+ goto fail;
Py_DECREF(nameobj);
PyObject_GC_Track(m);
return (PyObject *)m;