Skip to content

bpo-32240: Add the const qualifier to declarations of PyObject* array arguments.#4746

Merged
serhiy-storchaka merged 3 commits intopython:masterfrom
serhiy-storchaka:pyobject-const-arrays
Dec 15, 2017
Merged

bpo-32240: Add the const qualifier to declarations of PyObject* array arguments.#4746
serhiy-storchaka merged 3 commits intopython:masterfrom
serhiy-storchaka:pyobject-const-arrays

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Dec 7, 2017

Comment thread Doc/c-api/veryhigh.rst Outdated


.. c:function:: PyObject* PyEval_EvalCodeEx(PyObject *co, PyObject *globals, PyObject *locals, PyObject **args, int argcount, PyObject **kws, int kwcount, PyObject **defs, int defcount, PyObject *kwdefs, PyObject *closure)
.. c:function:: PyObject* PyEval_EvalCodeEx(PyObject *co, PyObject *globals, PyObject *locals, PyObject * const *args, int argcount, PyObject * const *kws, int kwcount, PyObject * const *defs, int defcount, PyObject *kwdefs, PyObject *closure)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nit, but the spacing in this PR looks weird to me. How about PyObject *const *kws?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@serhiy-storchaka serhiy-storchaka merged commit a5552f0 into python:master Dec 15, 2017
@serhiy-storchaka serhiy-storchaka deleted the pyobject-const-arrays branch December 15, 2017 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants