[issue44401] const kwlist for PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords

2021-06-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

This is a duplicate of issue21011.

We cannot change this because it breaks C API.

--
nosy: +serhiy.storchaka
resolution:  -> wont fix
stage: patch review -> resolved
status: open -> closed
superseder:  -> PyArg_ParseTupleAndKeywords doesn't take const char *keywords[]

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44401] const kwlist for PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords

2021-06-11 Thread Richard


Change by Richard :


--
keywords: +patch
nosy: +immortalplants
nosy_count: 1.0 -> 2.0
pull_requests: +25274
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26686

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44401] const kwlist for PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords

2021-06-11 Thread Richard Barnes


New submission from Richard Barnes :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com