introspect c-functions?
holger krekel
pyth at devel.trillke.net
Thu Jun 6 08:19:28 EDT 2002
Hello,
is there any way to introspect the *number of arguments*
of a function implemented at c-level? the inspect
module works only on python-functions, seemingly.
>>> import inspect
>>> inspect.getargspec(filter)
------------------------------------------------------------
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.3/inspect.py", line 621, in getargspec
if not isfunction(func): raise TypeError, 'arg is not a Python
function'
TypeError: arg is not a Python function
>>>
Any input and comments appreciated.
holger
More information about the Python-list
mailing list