[docs] PyArg_ParseTuple with format "et#" and "es#" detects overflow by raising TypeError instead of ValueError (issue 26198)

storchaka at gmail.com storchaka at gmail.com
Thu Jan 28 18:02:12 EST 2016


https://bugs.python.org/review/26198/diff/16428/Python/getargs.c
File Python/getargs.c (right):

https://bugs.python.org/review/26198/diff/16428/Python/getargs.c#newcode546
Python/getargs.c:546: strncpy(msgbuf, expected, bufsize);
On 2016/01/28 22:40:53, vadmium wrote:
> The strncpy() makes snprintf() redundant, doesn’t it?

Oh, true.

https://bugs.python.org/review/26198/


More information about the docs mailing list