G
Gonçalo Rodrigues
Hi,
Does anyone know if and how I can, from within Python, read the
signatures of builtin methods/functions?
The following fails:
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python23\lib\inspect.py", line 655, in getargspec
raise TypeError('arg is not a Python function')
TypeError: arg is not a Python functionTraceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python23\lib\inspect.py", line 655, in getargspec
raise TypeError('arg is not a Python function')
TypeError: arg is not a Python function
Also:
.... print elem
....
__call__
__class__
__delattr__
__doc__
__get__
__getattribute__
__hash__
__init__
__name__
__new__
__objclass__
__reduce__
__reduce_ex__
__repr__
__setattr__
__str__
gives no clue.
TIA, with my best regards,
G. Rodrigues
Does anyone know if and how I can, from within Python, read the
signatures of builtin methods/functions?
The following fails:
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python23\lib\inspect.py", line 655, in getargspec
raise TypeError('arg is not a Python function')
TypeError: arg is not a Python functionTraceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python23\lib\inspect.py", line 655, in getargspec
raise TypeError('arg is not a Python function')
TypeError: arg is not a Python function
Also:
.... print elem
....
__call__
__class__
__delattr__
__doc__
__get__
__getattribute__
__hash__
__init__
__name__
__new__
__objclass__
__reduce__
__reduce_ex__
__repr__
__setattr__
__str__
gives no clue.
TIA, with my best regards,
G. Rodrigues