From 0bd003a55e80438bb3db48bc1acf929477105d1c Mon Sep 17 00:00:00 2001 From: Alexander Belopolsky Date: Sat, 12 Jun 2010 19:36:28 +0000 Subject: [PATCH] Issue #8973: Expanded Struct.__doc__. --- Modules/_struct.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/_struct.c b/Modules/_struct.c index 02a8256a59d..7f97255cd2b 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)