[Python-Dev] Add const to python API - issue 6952
barry at barrys-emacs.org
Mon Oct 19 22:39:06 CEST 2009
Martin v. Löwis suggested that solutions to this issue should be
My goal is to avoid compiler warning and the need to cast to remove
calling the python API.
For example I see compiler messages like this on Mac OS X Snow Leopard
example.cxx:633: warning: deprecated conversion from string constant
The patch I developed for comment only adds const to the input
parameters and used casts to
allow output parameters to stay without the const.
This is because adding the const to the input params will not break
existing code, but
adding const to output parameters may well require code changes for
users of the Python
What is the best approach to this problem that will be acceptable?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev