Why does PyRun_SimpleFile need a char*, not a const char*?

Brian Quinlan brian at sweetapp.com
Mon Dec 2 18:29:14 EST 2002


> > So - why does PyRun_SimpleFile() expect to get a "char*" and
> > not a "const char*"?

> Raise a bug report on SourceForge.

You can submit a bug report if you want, but this problem has already
been discussed on Python-dev:
http://mail.python.org/pipermail/python-dev/2002-March/021002.html

The big problem is that adding const to the headers would break many
existing extensions.

Cheers,
Brian





More information about the Python-list mailing list