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


Groups > comp.lang.python > #12360

Re: Why PyImport_ExecCodeModule takes char*?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!hitnews.eu!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'received:verizon.net': 0.07; 'terry': 0.07; 'compilers.': 0.09; 'const': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; '6:52': 0.16; 'reedy': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'header:In- Reply-To:1': 0.22; 'pm,': 0.24; 'guess': 0.26; "i'm": 0.27; 'function': 0.27; 'to:addr:python-list': 0.33; 'instead': 0.33; 'header:User-Agent:1': 0.34; 'things': 0.34; 'header:X-Complaints- To:1': 0.35; 'another': 0.37; 'platforms': 0.37; 'received:org': 0.38; 'some': 0.38; 'subject:: ': 0.39; 'header:Mime-Version:1': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'history': 0.40; 'believe': 0.65; 'factory': 0.73; 'roberts': 0.84; 'mere': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Why PyImport_ExecCodeModule takes char*?
Date Sun, 28 Aug 2011 20:02:39 -0400
References <mailman.447.1314375134.27778.python-list@python.org> <jkhl579a7k66v3n3pe1pacq7j0st7nsnq4@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0
In-Reply-To <jkhl579a7k66v3n3pe1pacq7j0st7nsnq4@4ax.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.521.1314576217.27778.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1314576217 news.xs4all.nl 2485 [2001:888:2000:d::a6]:42464
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:12360

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

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

csiph-web