Mercurial > pylearn
comparison lookup_list.py @ 133:b4657441dd65
Corrected typos
author | Yoshua Bengio <bengioy@iro.umontreal.ca> |
---|---|
date | Fri, 09 May 2008 13:38:54 -0400 |
parents | 8fa1ef2411a0 |
children | 3f4e5c9bdc5e |
comparison
equal
deleted
inserted
replaced
132:f6505ec32dc3 | 133:b4657441dd65 |
---|---|
93 return self._values==other._values and self._name2index==other._name2index and self._names==other._names | 93 return self._values==other._values and self._name2index==other._name2index and self._names==other._names |
94 | 94 |
95 def __ne__(self, other): | 95 def __ne__(self, other): |
96 return not self.__eq__(other) | 96 return not self.__eq__(other) |
97 | 97 |
98 def __hash__(): | 98 def __hash__(self): |
99 raise NotImplementedError() | 99 raise NotImplementedError() |
100 | 100 |
101 def __call__(*names): | 101 def __call__(self,*names): |
102 """ | 102 """ |
103 Return a list of values associated with the given names (which must all be keys of the lookup list). | 103 Return a list of values associated with the given names (which must all be keys of the lookup list). |
104 """ | 104 """ |
105 return [self[name] for name in names] | 105 return [self[name] for name in names] |