comparison lookup_list.py @ 193:cb6b945acf5a

Complete redesign of learner...
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Thu, 15 May 2008 12:55:21 -0400
parents 4803cb76e26b
children 7c5e5356cb11
comparison
equal deleted inserted replaced
192:f62a03c9d485 193:cb6b945acf5a
109 109
110 def __call__(self,*names): 110 def __call__(self,*names):
111 """ 111 """
112 Return a list of values associated with the given names (which must all be keys of the lookup list). 112 Return a list of values associated with the given names (which must all be keys of the lookup list).
113 """ 113 """
114 if names == self._names:
115 return self._values
114 return [self[name] for name in names] 116 return [self[name] for name in names]
115 117
116 118
117 if __name__ == '__main__': 119 if __name__ == '__main__':
118 120