[Chicago] Getting list of members of function in class

Lukasz Szybalski szybalski at gmail.com
Wed Mar 7 20:19:47 CET 2007


Hello,
I am trying to get a list of members of a function, namely:

class A:
    def dowork(self):
        name='Lucas'
        work=['aaa','bbb']
        work1=[]
        work2=[]

How can i get a list of items that were created in dowork, namely:
name,work,work1,work2?
I could use dir(A) to get 'dowork', but that similar thing doesn't get
me the next list, dir(A.dowork)

Any help is appreciated,
Thanks.
Lucas


More information about the Chicago mailing list