2006-12-08 | paulb | raw annotate files changeset graph | Added support for importing modules, changing the annotation API and providing a convenience function, load, for easy loading of module files. Added support for the output of multiple modules in the same viewing directory. Added some docstrings for the Namespace and Importer classes. |
1 class A1: 2 def __init__(self): 3 self.b = [] 4 5 class A2: 6 def b(self): 7 return A3() 8 9 class A3: 10 c = [] 11 12 class A4: 13 def __getslice__(self, start=None, end=None, step=None): 14 return [] 15 def __getitem__(self, item): 16 return self 17 18 a = [1,2,3] 19 b = [4,5] 20 c = [6] 21 d = [] 22 e = 1 23 f = 2 24 25 a += b 26 27 a = A1() 28 a.b += c 29 a.b[e:] += d 30 31 a = A2() 32 a.b().c += d 33 34 a = A4() 35 a[e:f] += d 36 a[e] += c 37 a[e,f] += d