diff 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
line wrap: on
line diff
--- a/lookup_list.py	Thu May 15 12:46:21 2008 -0400
+++ b/lookup_list.py	Thu May 15 12:55:21 2008 -0400
@@ -111,6 +111,8 @@
         """
         Return a list of values associated with the given names (which must all be keys of the lookup list).
         """
+        if names == self._names:
+            return self._values
         return [self[name] for name in names]