]> granicus.if.org Git - python/commitdiff
Issue #8973: Expanded Struct.__doc__.
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sat, 12 Jun 2010 19:36:28 +0000 (19:36 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sat, 12 Jun 2010 19:36:28 +0000 (19:36 +0000)
Modules/_struct.c

index 02a8256a59d9c49e76f9a3a786f695c7e5a2cb87..7f97255cd2bbdfd8c1ad1392880c46d72919208c 100644 (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)