diff options
author | Gregory P. Smith <greg@krypto.org> | 2016-04-15 23:47:32 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2016-04-15 23:47:32 (GMT) |
commit | b0c6380640b5e3fb4ba6755121f25ea333f175c9 (patch) | |
tree | ee22a06dd475291f6a5b76cba7356e66d3c41153 /Modules/_struct.c | |
parent | 65f315e1ef89448cbafcdaadc510173b8328ce81 (diff) | |
parent | 1ff6b6ab121bce00cb9395fce034d09665ec8d77 (diff) | |
download | cpython-b0c6380640b5e3fb4ba6755121f25ea333f175c9.zip cpython-b0c6380640b5e3fb4ba6755121f25ea333f175c9.tar.gz cpython-b0c6380640b5e3fb4ba6755121f25ea333f175c9.tar.bz2 |
merge heads
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r-- | Modules/_struct.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c index 7626750..df81900 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -1497,8 +1497,8 @@ PyDoc_STRVAR(s_unpack__doc__, "S.unpack(buffer) -> (v1, v2, ...)\n\ \n\ Return a tuple containing values unpacked according to the format\n\ -string S.format. Requires len(buffer) == S.size. See help(struct)\n\ -for more on format strings."); +string S.format. The buffer's size in bytes must be S.size. See\n\ +help(struct) for more on format strings."); static PyObject * s_unpack(PyObject *self, PyObject *input) @@ -1527,8 +1527,8 @@ PyDoc_STRVAR(s_unpack_from__doc__, "S.unpack_from(buffer, offset=0) -> (v1, v2, ...)\n\ \n\ Return a tuple containing values unpacked according to the format\n\ -string S.format. Requires len(buffer[offset:]) >= S.size. See\n\ -help(struct) for more on format strings."); +string S.format. The buffer's size in bytes, minus offset, must be at\n\ +least S.size. See help(struct) for more on format strings."); static PyObject * s_unpack_from(PyObject *self, PyObject *args, PyObject *kwds) @@ -2130,8 +2130,8 @@ PyDoc_STRVAR(unpack_doc, "unpack(fmt, buffer) -> (v1, v2, ...)\n\ \n\ Return a tuple containing values unpacked according to the format string\n\ -fmt. Requires len(buffer) == calcsize(fmt). See help(struct) for more\n\ -on format strings."); +fmt. The buffer's size in bytes must be calcsize(fmt). See help(struct)\n\ +for more on format strings."); static PyObject * unpack(PyObject *self, PyObject *args) @@ -2153,8 +2153,8 @@ PyDoc_STRVAR(unpack_from_doc, "unpack_from(fmt, buffer, offset=0) -> (v1, v2, ...)\n\ \n\ Return a tuple containing values unpacked according to the format string\n\ -fmt. Requires len(buffer[offset:]) >= calcsize(fmt). See help(struct)\n\ -for more on format strings."); +fmt. The buffer's size, minus offset, must be at least calcsize(fmt).\n\ +See help(struct) for more on format strings."); static PyObject * unpack_from(PyObject *self, PyObject *args, PyObject *kwds) |