Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

This change is inspired by reviewing one PR in which an input array of 
PyObject* was modified inplace. Even if it was correct in that particular  
case, it looked unsafe (actually that code was wrong for other causes). Adding 
the const qualifier allows to distinguish input PyObject* array arguments from 
pointers to output PyObject* arguments.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32240>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to