diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2007-12-03 12:55:17 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2007-12-03 12:55:17 (GMT) |
commit | ef01d822aaea11ae25f78cb0be32865a5df07620 (patch) | |
tree | 0fbbaa653cb033490019809a9eb8b3c3ac942c74 /Objects | |
parent | f19b95112669db32556c157c04f064d319c11f09 (diff) | |
download | cpython-ef01d822aaea11ae25f78cb0be32865a5df07620.zip cpython-ef01d822aaea11ae25f78cb0be32865a5df07620.tar.gz cpython-ef01d822aaea11ae25f78cb0be32865a5df07620.tar.bz2 |
Implement PEP 366
Diffstat (limited to 'Objects')
-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 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; |