summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-02-07 23:05:48 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-02-07 23:05:48 (GMT)
commit36ae29c759fb7854345b61a18958e00635ee8e04 (patch)
treef3c2eec3b8dc74a237fa630f99bbee2aba82c581 /Doc
parentb59b04dd86514cec9e7acd6b2c65e49afaaa3b2a (diff)
downloadcpython-36ae29c759fb7854345b61a18958e00635ee8e04.zip
cpython-36ae29c759fb7854345b61a18958e00635ee8e04.tar.gz
cpython-36ae29c759fb7854345b61a18958e00635ee8e04.tar.bz2
Issue #26198: Fixed error messages for some argument parsing errors.
Fixed the documented about buffer overflow error for "es#" and "et#" format units.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/arg.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
index 8fbdc50..61fe937 100644
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -136,7 +136,8 @@ area. Also, you won't have to release any memory yourself, except with the
:c:func:`PyArg_ParseTuple` will use this location as the buffer and
interpret the initial value of *\*buffer_length* as the buffer size. It
will then copy the encoded data into the buffer and NUL-terminate it. If
- the buffer is not large enough, a :exc:`ValueError` will be set.
+ the buffer is not large enough, a :exc:`TypeError` will be set.
+ Note: starting from Python 3.6 a :exc:`ValueError` will be set.
In both cases, *\*buffer_length* is set to the length of the encoded data
without the trailing NUL byte.