This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Rosuav
Recipients Rosuav
Date 2011-05-25.07:10:30
SpamBayes Score 1.0476471e-06
Marked as misclassified No
Message-id <1306307431.38.0.422638235513.issue12173@psf.upfronthosting.co.za>
In-reply-to
Content
An anomaly in the argument types of similar functions: PyImport_ImportModuleLevel takes char *, while the related functions PyImport_AddModule, PyImport_ImportModule, and PyImport_ImportModuleNoBlock all take const char *. This made a nuisance of itself for me when I tried to compile my code against Python.h (embedding Python). Attached is a relatively trivial patch to add const. Should not impact existing code, as the compiler will happily pass a char* to a const char* (just not the other way).
History
Date User Action Args
2011-05-25 07:10:31Rosuavsetrecipients: + Rosuav
2011-05-25 07:10:31Rosuavsetmessageid: <1306307431.38.0.422638235513.issue12173@psf.upfronthosting.co.za>
2011-05-25 07:10:30Rosuavlinkissue12173 messages
2011-05-25 07:10:30Rosuavcreate