Inspect module - getargspec raise TypeError for built-in functions

Terry Reedy tjreedy at udel.edu
Tue Dec 1 16:42:44 EST 2009


Christian Heimes wrote:
> 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:

I added an issue to document this better
http://bugs.python.org/issue7422

> 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.

So should this request to also inspect C functions be closed?
http://bugs.python.org/issue1748064

Terry Jan Reedy




More information about the Python-list mailing list