Inspect module - getargspec raise TypeError for built-in functions

Christian Heimes lists at cheimes.de
Tue Dec 1 05:57:12 EST 2009


Nadav Chernin wrote:
> When I use getargspec(func) for user-defined function, all is working
> OK, but using it for built-in functions raise TypeError:

That's just fine and to be expected. It's not possible to inspect a C
function. Only functions implemented in Python have the necessary metadata.

Christian




More information about the Python-list mailing list