Issue 44401: const kwlist for PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords (original) (raw)

Issue44401

Created on 2021-06-12 01:21 by r-barnes, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 26686 closed immortalplants,2021-06-12 01:25
Messages (2)
msg395674 - (view) Author: Richard Barnes (r-barnes) * Date: 2021-06-12 01:21
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.
msg395680 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-06-12 07:02
This is a duplicate of . We cannot change this because it breaks C API.
History
Date User Action Args
2022-04-11 14:59:46 admin set github: 88567
2021-06-12 07:02:12 serhiy.storchaka set status: open -> closedsuperseder: PyArg_ParseTupleAndKeywords doesn't take const char *keywords[]nosy: + serhiy.storchakamessages: + resolution: wont fixstage: patch review -> resolved
2021-06-12 01:25:33 immortalplants set keywords: + patchnosy: + immortalplantspull_requests: + <pull%5Frequest25274>stage: patch review
2021-06-12 01:21:56 r-barnes create