summaryrefslogtreecommitdiffstats
path: root/Modules/_struct.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-06-12 19:44:22 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-06-12 19:44:22 (GMT)
commitd12dfe231ec3719ba5d8ac3e399d77ea72068d49 (patch)
tree4bb53ff668b46af800aa5cb6a90052418cbb5ed5 /Modules/_struct.c
parentf9e091ae2d40ab78d7b077b11cd7789d679c23d2 (diff)
downloadcpython-d12dfe231ec3719ba5d8ac3e399d77ea72068d49.zip
cpython-d12dfe231ec3719ba5d8ac3e399d77ea72068d49.tar.gz
cpython-d12dfe231ec3719ba5d8ac3e399d77ea72068d49.tar.bz2
Merged revisions 81961 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r81961 | alexander.belopolsky | 2010-06-12 20:36:28 +0100 (Sat, 12 Jun 2010) | 1 line 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 c3c79e7..222521b 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -1669,7 +1669,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)