diff stopper.py @ 211:bd728c83faff

in __get__, problem if the i.stop was None, i being the slice, added one line replacing None by the len(self)
author Thierry Bertin-Mahieux <bertinmt@iro.umontreal.ca>
date Wed, 21 May 2008 17:39:30 -0400
parents 4090779e39a9
children cc96f93a7810
line wrap: on
line diff
--- a/stopper.py	Sat May 17 00:01:47 2008 -0400
+++ b/stopper.py	Wed May 21 17:39:30 2008 -0400
@@ -75,6 +75,9 @@
 
     E_set_score = 'when iter.set_score is True, caller must assign a score to iter.score'
     def next(self):
+
+        print 'ICML08 stopper, were doing a next'
+
         if self.set_score: #left over from last time
             if self.score is None:
                 raise Exception(ICML08Stopper.E_set_score)