summaryrefslogtreecommitdiffstats
path: root/Modules/clinic
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2018-03-10 18:58:52 (GMT)
committerGitHub <noreply@github.com>2018-03-10 18:58:52 (GMT)
commitc10b288f345aaef66d2c844924b9a576f9ea4f8b (patch)
tree30d64745d62c991b5d18bfc1c381f31b165c7c4d /Modules/clinic
parent67ee07795bcd84b679c000780212d4d81a1490a3 (diff)
downloadcpython-c10b288f345aaef66d2c844924b9a576f9ea4f8b.zip
cpython-c10b288f345aaef66d2c844924b9a576f9ea4f8b.tar.gz
cpython-c10b288f345aaef66d2c844924b9a576f9ea4f8b.tar.bz2
bpo-30249: Improve struct.unpack_from() error messages (GH-6059)
Diffstat (limited to 'Modules/clinic')
-rw-r--r--Modules/clinic/_struct.c.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/clinic/_struct.c.h b/Modules/clinic/_struct.c.h
index 6e43215..2ecadfb 100644
--- a/Modules/clinic/_struct.c.h
+++ b/Modules/clinic/_struct.c.h
@@ -79,7 +79,8 @@ PyDoc_STRVAR(Struct_unpack_from__doc__,
"\n"
"Values are unpacked according to the format string Struct.format.\n"
"\n"
-"The buffer\'s size in bytes, minus offset, must be at least Struct.size.\n"
+"The buffer\'s size in bytes, starting at position offset, must be\n"
+"at least Struct.size.\n"
"\n"
"See help(struct) for more on format strings.");
@@ -302,4 +303,4 @@ exit:
return return_value;
}
-/*[clinic end generated code: output=9119f213a951e4cc input=a9049054013a1b77]*/
+/*[clinic end generated code: output=d79b009652ae0b89 input=a9049054013a1b77]*/