Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12232 > unrolled thread

Why PyImport_ExecCodeModule takes char*?

Started byMateusz Loskot <mateusz@loskot.net>
First post2011-08-26 16:40 +0100
Last post2011-08-28 20:02 -0400
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Why PyImport_ExecCodeModule takes char*? Mateusz Loskot <mateusz@loskot.net> - 2011-08-26 16:40 +0100
    Re: Why PyImport_ExecCodeModule takes char*? Tim Roberts <timr@probo.com> - 2011-08-28 15:52 -0700
      Re: Why PyImport_ExecCodeModule takes char*? Terry Reedy <tjreedy@udel.edu> - 2011-08-28 20:02 -0400

#12232 — Why PyImport_ExecCodeModule takes char*?

FromMateusz Loskot <mateusz@loskot.net>
Date2011-08-26 16:40 +0100
SubjectWhy PyImport_ExecCodeModule takes char*?
Message-ID<mailman.447.1314375134.27778.python-list@python.org>
Hi,

I'm wondering, why PyImport_ExecCodeModule function takes char*
instead of const char*?

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org

[toc] | [next] | [standalone]


#12356

FromTim Roberts <timr@probo.com>
Date2011-08-28 15:52 -0700
Message-ID<jkhl579a7k66v3n3pe1pacq7j0st7nsnq4@4ax.com>
In reply to#12232
Mateusz Loskot <mateusz@loskot.net> wrote:
>
>I'm wondering, why PyImport_ExecCodeModule function takes char*
>instead of const char*?

My guess is "history".
-- 
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

[toc] | [prev] | [next] | [standalone]


#12360

FromTerry Reedy <tjreedy@udel.edu>
Date2011-08-28 20:02 -0400
Message-ID<mailman.521.1314576217.27778.python-list@python.org>
In reply to#12356
On 8/28/2011 6:52 PM, Tim Roberts wrote:
> Mateusz Loskot<mateusz@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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web