Mercurial > cpython-lru_cache-weakref
diff Objects/moduleobject.c @ 23654:b86eaeb0d7dd legacy-trunk
Add a docstring to the module type.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 04 Jun 2002 06:02:35 +0000 |
| parents | b40165a4efe9 |
| children | ed1ba37a46b7 |
line wrap: on
line diff
--- a/Objects/moduleobject.c Tue Jun 04 05:58:34 2002 +0000 +++ b/Objects/moduleobject.c Tue Jun 04 06:02:35 2002 +0000 @@ -209,6 +209,12 @@ return 0; } +static char module_doc[] = +"module(name[, doc])\n\ +\n\ +Create a module object.\n\ +The name must be a string; the optional doc argument can have any type."; + PyTypeObject PyModule_Type = { PyObject_HEAD_INIT(&PyType_Type) 0, /* ob_size */ @@ -232,7 +238,7 @@ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE, /* tp_flags */ - 0, /* tp_doc */ + module_doc, /* tp_doc */ (traverseproc)module_traverse, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */
