SIGN IN SIGN UP

gh-65210: Add const qualifiers in PyArg_VaParseTupleAndKeywords() (GH-105958)

Change the declaration of the keywords parameter in functions
PyArg_ParseTupleAndKeywords() and PyArg_VaParseTupleAndKeywords() from `char **`
to `char * const *` in C and `const char * const *` in C++.

It makes these functions compatible with argument of type `const char * const *`,
`const char **` or `char * const *` in C++ and `char * const *` in C
without explicit type cast.

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
S
Serhiy Storchaka committed
da6760bdf5ed8ede203618d5118f4ceb2cb1652d
Parent: cda7379
Committed by GitHub <noreply@github.com> on 12/4/2023, 11:14:56 AM