You are not logged in.
ok... let's pretend I have:
class foibles:
def foo(self):
print 'foo'
def bar(self,a,b):
print 'bar ' + a + ' '+ b
def baz(self,a,b,c,d,e,f,g,h,i,j):
print 'BAM!'
Now, dir(foibles) works fine to get the functions of the class... but is there anyway to get the params of each function? I'm looking for something like:
>>> foibles.baz.__signature__
baz(self,a,b,c,d,e,f,g,h,i,j)
Offline
quick look through the library reference find me this:
http://docs.python.org/lib/module-inspect.html
http://docs.python.org/lib/inspect-clas … tions.html
hope it helps.
Offline