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

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Fri Sep 26 03:47:11 EDT 2014


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




More information about the Python-list mailing list