Hi, all

 

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

 

>>> import sys

>>> getargspec(sys.getsizeof)

 

Traceback (most recent call last):

  File "<pyshell#15>", line 1, in <module>

    getargspec(sys.getsizeof)

  File "C:\Python26\lib\inspect.py", line 803, in getargspec

    raise TypeError('arg is not a Python function')

TypeError: arg is not a Python function

 

 

 

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to