print.py (1049:b175a798c8d4) | print.py (1547:1f0c266940d4) |
---|---|
1all = False 2descriptions = False 3 4class Value: 5 def __init__(self, value, precision, percent = False): 6 self.value = value 7 self.precision = precision 8 self.percent = percent --- 57 unchanged lines hidden (view full) --- 66 print self 67 68class VectorDisplay: 69 def display(self): 70 p = Print() 71 p.flags = self.flags 72 p.precision = self.precision 73 | 1all = False 2descriptions = False 3 4class Value: 5 def __init__(self, value, precision, percent = False): 6 self.value = value 7 self.precision = precision 8 self.percent = percent --- 57 unchanged lines hidden (view full) --- 66 print self 67 68class VectorDisplay: 69 def display(self): 70 p = Print() 71 p.flags = self.flags 72 p.precision = self.precision 73 |
74 if issequence(self.value): | 74 if isinstance(self.value, (list, tuple)): |
75 if not len(self.value): 76 return 77 78 mytotal = reduce(lambda x,y: float(x) + float(y), self.value) 79 mycdf = 0.0 80 81 value = self.value 82 --- 45 unchanged lines hidden --- | 75 if not len(self.value): 76 return 77 78 mytotal = reduce(lambda x,y: float(x) + float(y), self.value) 79 mycdf = 0.0 80 81 value = self.value 82 --- 45 unchanged lines hidden --- |