Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94929
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.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.019 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'override': 0.07; 'extension.': 0.09; 'subject:using': 0.09; 'subject:not': 0.11; 'bisect': 0.16; 'received:192.168.11': 0.16; '>>>': 0.20; 'developer': 0.20; 'extension': 0.20; 'import': 0.24; 'module': 0.25; 'header:User-Agent:1': 0.26; 'not.': 0.27; 'subject: ?': 0.27; 'module.': 0.27; 'correct': 0.28; 'function': 0.28; 'idea': 0.28; 'everyone.': 0.33; 'message-id:@gmail.com': 0.34; 'received:google.com': 0.35; 'to:addr:python-list': 0.36; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'determine': 0.61; 'charset:iso-2022-jp': 0.63; 'more': 0.63; 'believe': 0.66 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=fqHidyaGP/4yqYsObM7kLvyE10ia9ytla/gEG6hyF+8=; b=kyrvLtr1lBsnei/xUvmLaDMbtazgGF8B73fEXqGxSS2EDqFt0oiuiMeRIoYQgePplT pdn0BfloFTDq5WZp9bt5IVcJJcZZo1bwprABP8LhTWLYOqB4K5mg34zUT1EUwo+Liqhz 8dMy46D+VTVBJM633z9B5PY89yvAy4131aSLpuaVJQMgE+oYqUHGQFyF6fneeNhnsbiI b7Aoq6aTmHWhVXSQqhLnmGsFXmm5cXpK+17vpJztFqrbLVOcL73MvMxZML6IqhHFs50n gV8Fva8GxufXsR6bZg3UJGg3TqmORTVYKpOz2peS2tFWymMeXukFVIPrnfrjrb9cwFnn bTJQ== |
| X-Received | by 10.70.88.37 with SMTP id bd5mr35847630pdb.159.1438605653016; Mon, 03 Aug 2015 05:40:53 -0700 (PDT) |
| Date | Mon, 03 Aug 2015 21:40:49 +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 |
| To | python-list@python.org |
| Subject | how to determine for using c extension or not ? |
| Content-Type | text/plain; charset=iso-2022-jp |
| Content-Transfer-Encoding | 7bit |
| 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.1180.1438605661.3674.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1438605661 news.xs4all.nl 2839 [2001:888:2000:d::a6]:33655 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 3376 |
| X-Received-Body-CRC | 1404732388 |
| Xref | csiph.com comp.lang.python:94929 |
Show key headers only | View raw
Hello everyone. I use bisect module. bisect module developer give us c extension as _bisect. If Python3.3 use _bisect, _bisect override his functions in bisect.py. now, I use id() function to determine for using c extension or not. >>> >>> import bisect >>> >>> id(bisect.bisect) 139679893708880 >>> >>> import _bisect >>> >>> id(_bisect.bisect) 139679893708880 they return 139679893708880 as id. so i believe that i use c extension. My check is correct ? right ? or you have more good idea ?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
how to determine for using c extension or not ? umedoblock <umedoblock@gmail.com> - 2015-08-03 21:40 +0900
csiph-web