tools/docco/examples.py
branchpy33
changeset 3723 99aa837b6703
parent 3721 0c93dd8ff567
child 3789 5bc95e1f3dd4
equal deleted inserted replaced
3722:29c11b905751 3723:99aa837b6703
   854 # D = dir()
   854 # D = dir()
   855 g = globals()
   855 g = globals()
   856 Dprime = {}
   856 Dprime = {}
   857 from types import StringType
   857 from types import StringType
   858 from string import strip
   858 from string import strip
   859 for (a,b) in list(g.items()):
   859 for a,b in g.items():
   860     if a[:4]=="test" and type(b) is StringType:
   860     if a[:4]=="test" and type(b) is StringType:
   861         #print 'for', a
   861         #print 'for', a
   862         #print b
   862         #print b
   863         b = strip(b)
   863         b = strip(b)
   864         exec(b+'\n')
   864         exec(b+'\n')