[Python-Dev] Opinions on const-correctness?

Martin v. Loewis martin@v.loewis.de
13 Mar 2002 08:12:04 +0100


"David Abrahams" <david.abrahams@rcn.com> writes:

> Only if you change the strings /returned/ by Python (or structure
> members) to const char*. Changing your parameters to const char* won't
> hurt anybody.

It sure will. Inside the functions you change, you may not be able to
use the argument as before. In particular, you may not be able to call
functions from the standard C library anymore.

Regards,
Martin