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


Groups > comp.lang.python > #78370

any way to tell at runtime whether a callable is implemented in Python or C ?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.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.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'callable': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: \n ': 0.16; 'subject: ?': 0.16; 'thanks,': 0.17; 'header:User-Agent:1': 0.23; 'header:X -Complaints-To:1': 0.27; 'code': 0.31; 'inspect': 0.31; 'received:132': 0.31; 'running': 0.33; 'implemented': 0.33; 'there': 0.35; 'hi,': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'inexpensive': 0.84; 'subject:tell': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
Subject any way to tell at runtime whether a callable is implemented in Python or C ?
Date Fri, 26 Sep 2014 09:47:11 +0200
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host px1.ruf.uni-freiburg.de
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.14387.1411717605.18130.python-list@python.org> (permalink)
Lines 8
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1411717605 news.xs4all.nl 2978 [2001:888:2000:d::a6]:40806
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:78370

Show key headers only | View raw


Hi,
is there any reliable and inexpensive way to inspect a callable from 
running Python code to learn whether it is implemented in Python or C 
before calling into it ?

Thanks,
Wolfgang

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


Thread

any way to tell at runtime whether a callable is implemented in Python or C ? Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-09-26 09:47 +0200

csiph-web