Message136829
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). |
|
Date |
User |
Action |
Args |
2011-05-25 07:10:31 | Rosuav | set | recipients:
+ Rosuav |
2011-05-25 07:10:31 | Rosuav | set | messageid: <1306307431.38.0.422638235513.issue12173@psf.upfronthosting.co.za> |
2011-05-25 07:10:30 | Rosuav | link | issue12173 messages |
2011-05-25 07:10:30 | Rosuav | create | |
|