[issue1772673] Replacing char* with const char*

Antoine Pitrou report at bugs.python.org
Mon May 13 23:41:43 CEST 2013


Antoine Pitrou added the comment:

> Antoine, I was referring to the discussion linked earlier
> (http://mail.python.org/pipermail/python-dev/2006-February/060689.html).

Ok, I've read it through. The problem is specifically with
pointers-to-pointers:
http://mail.python.org/pipermail/python-dev/2006-February/060849.html

And indeed, PyArg_ParseTupleAndKeywords() got its "const char **"
argument changed back to "char **". But the other consts have stayed
(such as the "const char *" argument to the same
PyArg_ParseTupleAndKeywords()).

So it looks like the patch, in essence, is legit.
(of course, in practice, it probably won't apply cleanly, since it's
very old; and perhaps it's incomplete too)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1772673>
_______________________________________


More information about the Python-bugs-list mailing list