Mercurial > pylearn
diff lookup_list.py @ 20:266c68cb6136
Minor editions, plus adding untested ApplyFunctionDataset for GradientLearner in the works.
author | bengioy@bengiomac.local |
---|---|
date | Mon, 07 Apr 2008 09:48:39 -0400 |
parents | 57f4015e2e09 |
children | b6b36f65664f |
line wrap: on
line diff
--- a/lookup_list.py Thu Mar 27 01:59:44 2008 -0400 +++ b/lookup_list.py Mon Apr 07 09:48:39 2008 -0400 @@ -55,16 +55,6 @@ except KeyError, e: raise AttributeError(name) - if 0: - # This makes subclassing horrible, just call append_keyval if it's - # really what you want to do. - # -JB - def __setattr__(self,name,value): - if name in self._name2index: - self._values[self._name2index[name]]=value - else: - raise AttributeError(name) - def append_keyval(self, key, value): self._name2index[key]=len(self) self._values.append(value)