[New-bugs-announce] [issue44401] const kwlist for PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords

Richard Barnes report at bugs.python.org
Fri Jun 11 21:21:56 EDT 2021


New submission from Richard Barnes <rbarnes at umn.edu>:

PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords currently accept `kwlist` as `char **`; however, is not modified by either function. Therefore, a `const char **` might be better since this allows calling code to take advantage of `const` safety.

----------
components: C API
messages: 395674
nosy: r-barnes
priority: normal
severity: normal
status: open
title: const kwlist for PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords
type: security

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44401>
_______________________________________


More information about the New-bugs-announce mailing list