From: Alexander Belopolsky Date: Sat, 12 Jun 2010 19:36:28 +0000 (+0000) Subject: Issue #8973: Expanded Struct.__doc__. X-Git-Tag: v3.2a1~539 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0bd003a55e80438bb3db48bc1acf929477105d1c;p=python Issue #8973: Expanded Struct.__doc__. --- diff --git a/Modules/_struct.c b/Modules/_struct.c index 02a8256a59..7f97255cd2 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -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)