From method name I would like know its signature
i.e.
def myMethod(firt, second, third='something'):
pass
from myMethod name is possible have samenthig like that
myMethod(firt, second, third='something')
From method name I would like know its signature
i.e.
def myMethod(firt, second, third='something'):
pass
from myMethod name is possible have samenthig like that
myMethod(firt, second, third='something')
Try calling help
on an object to find out about it.
>>> foo = [1, 2, 3]
>>> help(foo.append)
Help on built-in function append:
append(...)
L.append(object) -- append object to end
import inspect
def foo(a,b,x='blah'):
pass
print(inspect.getargspec(foo))
# ArgSpec(args=['a', 'b', 'x'], varargs=None, keywords=None, defaults=('blah',))