Issue #8973: Expanded Struct.__doc__.

This commit is contained in:
Alexander Belopolsky 2010-06-12 19:36:28 +00:00
parent 8d81c6a6f4
commit 0bd003a55e

View File

@ -1683,7 +1683,11 @@ static struct PyMethodDef s_methods[] = {
{NULL, NULL} /* sentinel */
};
PyDoc_STRVAR(s__doc__, "Compiled struct object");
PyDoc_STRVAR(s__doc__,
"Struct(fmt) --> compiled struct object\n"
"\n"
"Return a new Struct object which writes and reads binary data according to\n"
"the format string fmt. See help(struct) for more on format strings.");
#define OFF(x) offsetof(PyStructObject, x)