>>> import inspect
>>> import numpy as np
>>> inspect.getargspec(np.abs)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\inspect.py", line 815, in getargspec
raise TypeError('{!r} is not a Python function'.format(func))
TypeError: <ufunc 'absolute'> is not a Python function
So inspect doesn't return arguments for numpy function, because it does not recognize it as function, while numpy doesn't seem to have helper function that would return function's arguments.
Does anyone know how to get arguments for arbitrary numpy function?
.ninand.nout