summaryrefslogtreecommitdiffstats
path: root/Modules/_struct.c
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-06-12 19:36:28 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-06-12 19:36:28 (GMT)
commit0bd003a55e80438bb3db48bc1acf929477105d1c (patch)
treefeb4c6a53ae03c20425a061dc1d95f76ceef2a76 /Modules/_struct.c
parent8d81c6a6f4fa0698cea8eda7e3bcd9e959e3d429 (diff)
downloadcpython-0bd003a55e80438bb3db48bc1acf929477105d1c.zip
cpython-0bd003a55e80438bb3db48bc1acf929477105d1c.tar.gz
cpython-0bd003a55e80438bb3db48bc1acf929477105d1c.tar.bz2
Issue #8973: Expanded Struct.__doc__.
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r--Modules/_struct.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index 02a8256..7f97255 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)