mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #26198: Fixed error messages for some argument parsing errors.
Fixed the documented about buffer overflow error for "es#" and "et#" format units.
This commit is contained in:
parent
d5db14794b
commit
c4b813d05d
3 changed files with 23 additions and 14 deletions
|
@ -206,7 +206,8 @@ Unless otherwise stated, buffers are not NUL-terminated.
|
|||
: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.
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue