Why PyImport_ExecCodeModule takes char*?

Terry Reedy tjreedy at udel.edu
Mon Aug 29 02:02:39 CEST 2011

On 8/28/2011 6:52 PM, Tim Roberts wrote:
> Mateusz Loskot<mateusz at loskot.net>  wrote:
>> I'm wondering, why PyImport_ExecCodeModule function takes char*
>> instead of const char*?
> My guess is "history".

I believe some const tags have been added over the last few years. 
Another factory than mere history for some things is portability across 
platforms and the main compilers.

Terry Jan Reedy

More information about the Python-list mailing list