tools/pythonpoint/demos/examples.py
branchpy33
changeset 3723 99aa837b6703
parent 3721 0c93dd8ff567
child 3794 398ea04239b5
equal deleted inserted replaced
3722:29c11b905751 3723:99aa837b6703
   785 # D = dir()
   785 # D = dir()
   786 g = globals()
   786 g = globals()
   787 Dprime = {}
   787 Dprime = {}
   788 from types import StringType
   788 from types import StringType
   789 from string import strip
   789 from string import strip
   790 for (a,b) in list(g.items()):
   790 for a,b in g.items()):
   791     if a[:4]=="test" and type(b) is StringType:
   791     if a[:4]=="test" and type(b) is StringType:
   792         #print 'for', a
   792         #print 'for', a
   793         #print b
   793         #print b
   794         b = strip(b)
   794         b = strip(b)
   795         exec(b+'\n')
   795         exec(b+'\n')