Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94949
| Path | csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <marco.buttu@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.027 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'builtin': 0.07; 'namespace': 0.09; 'subject:using': 0.09; 'python': 0.10; 'python.': 0.11; 'subject:not': 0.11; 'interpreter': 0.15; 'alphabetical': 0.16; 'c++.': 0.16; 'function"': 0.16; 'namespace.': 0.16; 'wrote:': 0.16; 'skip': 0.18; 'tells': 0.18; 'bit': 0.23; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'subject: ?': 0.27; 'module.': 0.27; 'function': 0.28; 'objects': 0.29; 'url:python': 0.33; 'phone:': 0.33; 'received:google.com': 0.35; 'so,': 0.35; 'could': 0.35; 'but': 0.36; 'list,': 0.36; 'skip:i 20': 0.36; 'there': 0.36; 'url:org': 0.36; 'url:library': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'names': 0.38; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'term': 0.60; 'url:3': 0.60; 'email:': 0.62; 'charset:windows-1252': 0.62; 'della': 0.66; 'here': 0.66; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'url:functions': 0.84; 'poorly': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Rlw8Ylk3Y8/6h4Q9TrxeNMiOAGhjHfLJfti05S2S1Jk=; b=pf8EPUeZUxmn/ztjHbksc4/HHNVcW7AUSMZVv8KXdxIf7Npm9Typ6iqWi6aVEchYbP PCnLXRH8p+zWjrDBzWgYNToupFW3/cd5P9RToASK+igGjZmrwPA74pibbgU8qO7c2dYF dMtpf2/FmmR+3vZGLtecudVIRdbnGwhyeOw7+Y0Tux+QZHKaexeBZor/5NnBIqug4Vm2 TNKooFS0o51AyQUXUW3+HjINyT8A26LpCIMX3S/HSdxjTqLDHB2Abc4kIX+FdOf+AYxM GrOrmjZJ4k2tiilCzCKTGNXP2WilnKXasFENXOwEMVUkpN+triZvy2WhjHT3sAFZswrp fd+g== |
| X-Received | by 10.180.75.243 with SMTP id f19mr34250986wiw.52.1438613681600; Mon, 03 Aug 2015 07:54:41 -0700 (PDT) |
| From | Marco Buttu <marco.buttu@gmail.com> |
| X-Google-Original-From | Marco Buttu <mbuttu@oa-cagliari.inaf.it> |
| Date | Mon, 03 Aug 2015 16:54:38 +0200 |
| Reply-To | mbuttu@oa-cagliari.inaf.it |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: how to determine for using c extension or not ? |
| References | <55BF0078.2030806@gmail.com> <CANc-5UzvJgQV9hnzNM2QJ2zNjbn94175sq0t3uQNMJHhSoqw3Q@mail.gmail.com> |
| In-Reply-To | <CANc-5UzvJgQV9hnzNM2QJ2zNjbn94175sq0t3uQNMJHhSoqw3Q@mail.gmail.com> |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Mailman-Approved-At | Mon, 03 Aug 2015 18:11:30 +0200 |
| 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.1196.1438618292.3674.python-list@python.org> (permalink) |
| Lines | 37 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1438618292 news.xs4all.nl 2926 [2001:888:2000:d::a6]:48253 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:94949 |
Show key headers only | View raw
On 03/08/2015 15:30, Skip Montanaro wrote: > id() tells you nothing about the nature of the function. Use the > inspect.isbuiltin(): > ... > It's perhaps a bit poorly named, but "builtin" functions are those not > written in Python. That is, those written in C or C++. I think in the documentation there is an inconsistency about the term builtin. The "Built-in Functions" documentation says: """The Python interpreter has a number of functions and types built into it that are *always available*. They are listed here in alphabetical order""". https://docs.python.org/3/library/functions.html The functions in the documentation list, are the same functions we get from the `builtins` module. So, in the documentation we use the term built-in to indicate functions always available, whose names live in the builtin namespace. Sometimes, as mentioned by Skip, we say that the term "buit-in function" is also referred to a function written in C: https://docs.python.org/3/library/types.html#types.BuiltinFunctionType By using the same word (built-in) to indicate either objects written in C or objects who live in the builtin namespace could be a bit muddler. -- Marco Buttu INAF-Osservatorio Astronomico di Cagliari Via della Scienza n. 5, 09047 Selargius (CA) Phone: 070 711 80 217 Email: mbuttu@oa-cagliari.inaf.it
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: how to determine for using c extension or not ? Marco Buttu <marco.buttu@gmail.com> - 2015-08-03 16:54 +0200
csiph-web