[issue39591] Functions in Python/traceback.c can take const pointer arguments
Andy Lester
report at bugs.python.org
Mon Feb 10 10:18:04 EST 2020
Andy Lester <andy at petdance.com> added the comment:
> Yes, Py_INCREF and Py_DECREF change the type, and therefore constness.
Understood. The changes that I have proposed are not to objects that get sent through Py_INCREF/Py_DECREF. If they did, -Wcast-qual would have caught it. -Wcast-qual catches if you cast, say, a const char * to a char *.
Let's let this stay closed and I'll resubmit with a clearer ticket & PR.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39591>
_______________________________________
More information about the Python-bugs-list
mailing list