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: 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 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: <55bf6e6f$0$1650$c3e8da3$5496439d@news.astraweb.com> <55BF7457.8030704@gmail.com> <55BF8154.2030705@gmail.com> In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On 2015年08月04日 00:05, Oscar Benjamin wrote: > On Mon, 3 Aug 2015 at 15:58 umedoblock > 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