[New-bugs-announce] [issue32240] Add the const qualifier for PyObject* array arguments

Serhiy Storchaka report at bugs.python.org
Thu Dec 7 06:21:41 EST 2017


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

The proposed PR replaces argument declarations "PyObject **args" with "PyObject * const *args". In many cases this can be a pointer to the internal array of the tuple object. It is not safe to change it.

PyEval_EvalCodeEx() is the only public function affected by this change, but this change is backward compatible. All other affected code is a private C API.

----------
messages: 307795
nosy: serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Add the const qualifier for PyObject* array arguments
type: enhancement
versions: Python 3.7

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


More information about the New-bugs-announce mailing list