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


Groups > comp.lang.python > #94965

Re: how to determine for using c extension or not ?

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <umedoblock@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'accelerator': 0.09; 'benjamin': 0.09; 'subject:using': 0.09; 'subject:not': 0.11; 'received:192.168.11': 0.16; 'wrote:': 0.16; 'script.': 0.18; "shouldn't": 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'aug': 0.20; 'extension': 0.20; 'machine': 0.21; 'cc:no real name:2**0': 0.22; 'wrote': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'skip:" 20': 0.26; 'not.': 0.27; 'subject: ?': 0.27; 'idea': 0.28; 'sentence': 0.29; "i'd": 0.31; 'another': 0.32; 'machine.': 0.33; 'message-id:@gmail.com': 0.34; 'received:google.com': 0.35; 'sometimes': 0.35; 'but': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'list.': 0.37; 'mailing': 0.38; 'why': 0.39; 'received:192': 0.39; 'some': 0.40; 'determine': 0.61; 'matter.': 0.66; 'therefore': 0.67; 'oscar': 0.84; 'to:none': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=3aTEyilhsqzC1SdEEOEtRJPPvLmCEoh8T9emmCh+7Ls=; b=THCKDqfAzbEOUt59DcdY4rAxELAAEhMaMdbPBVE+/aH2wkOdR7ZHW3HNOy/oYIVhHh rOQUlErGKvWrjIhgWbWzwb4rx5zK4OQUCqzH1GlU6vwYIx+kpuk1NiH+sNbz2qqgRw2r UujnE9UIJbx+0hogEQknPPAdGaZImaYR0ibh+UVmC4PH5upsAjcrC7cmdJ3RdRIRgtmr fPGz3J4RnT50gtPmWWbG4V6pH1+awHxKYCzkCUZ0tWQUgYR8findzj9nfl09xkGJBLDE V1fdVMsqulEhsoHQY9kjt1cfkmClRUuFxsdLJN1kGQebypA8obVB+wVUx3meo/OHuXhc EIIw==
X-Received by 10.69.0.138 with SMTP id ay10mr8071524pbd.5.1438696767223; Tue, 04 Aug 2015 06:59:27 -0700 (PDT)
Date Tue, 04 Aug 2015 22:59:24 +0900
From umedoblock <umedoblock@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0
MIME-Version 1.0
CC python-list@python.org
Subject Re: how to determine for using c extension or not ?
References <mailman.1170.1438580869.3674.python-list@python.org> <55bf6e6f$0$1650$c3e8da3$5496439d@news.astraweb.com> <55BF7457.8030704@gmail.com> <CAPM-O+wFC3jQzs6hzoK+PrypbYsubTwToVg43zjk_qPhR4T6fQ@mail.gmail.com> <55BF8154.2030705@gmail.com> <CAHVvXxQWKh59hcrF-yV4t2HTtVMvmF6Zzw=7j0wSNigOArKGvQ@mail.gmail.com>
In-Reply-To <CAHVvXxQWKh59hcrF-yV4t2HTtVMvmF6Zzw=7j0wSNigOArKGvQ@mail.gmail.com>
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1214.1438696775.3674.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1438696775 news.xs4all.nl 2834 [2001:888:2000:d::a6]:44389
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:94965

Show key headers only | View raw


On 2015年08月04日 00:05, Oscar Benjamin wrote:
> On Mon, 3 Aug 2015 at 15:58 umedoblock <umedoblock@gmail.com
> <mailto:umedoblock@gmail.com>> wrote:
>
>
>     I use "bisect.bisect.__module__" sentence to determine for using c
>     extension or not.
>
>
> Why do you want to know if it uses the C extension? It shouldn't really
> matter.

I wrote some C accelerator.
I sometimes want to know that python3.x in another machine use C 
accelerator or not.

Because if python3.x doesn't use C acc, I shuold make C acc for another 
machine.
Therefore I'd like to determine for using C acc or not.
And I want to know that another machine use C acc or not to use a simple 
script.

But I had felt not good idea about my way to use id().
So I ask this mailing list.

>
> --
> Oscar

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


Thread

how to determine for using c extension or not ? umedoblock <umedoblock@gmail.com> - 2015-08-03 14:47 +0900
  Re: how to determine for using c extension or not ? Steven D'Aprano <steve@pearwood.info> - 2015-08-03 23:36 +1000
    Re: how to determine for using c extension or not ? umedoblock <umedoblock@gmail.com> - 2015-08-03 23:01 +0900
    Re: how to determine for using c extension or not ? Joel Goldstick <joel.goldstick@gmail.com> - 2015-08-03 10:11 -0400
    Re: how to determine for using c extension or not ? umedoblock <umedoblock@gmail.com> - 2015-08-03 23:57 +0900
    Re: how to determine for using c extension or not ? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2015-08-03 15:05 +0000
    Re: how to determine for using c extension or not ? umedoblock <umedoblock@gmail.com> - 2015-08-04 22:59 +0900

csiph-web