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

vadmium+py at gmail.com vadmium+py at gmail.com
Thu Jan 28 16:40:53 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);
The strncpy() makes snprintf() redundant, doesn’t it?

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


More information about the docs mailing list