[Checkins] SVN: z3c.batching/trunk/src/z3c/batching/batch.py added __nonzero__ method

Nikolay Kim fafhrd at datacom.kz
Mon Feb 18 05:13:05 EST 2008


Log message for revision 84011:
  added __nonzero__ method

Changed:
  U   z3c.batching/trunk/src/z3c/batching/batch.py

-=-
Modified: z3c.batching/trunk/src/z3c/batching/batch.py
===================================================================
--- z3c.batching/trunk/src/z3c/batching/batch.py	2008-02-18 09:08:33 UTC (rev 84010)
+++ z3c.batching/trunk/src/z3c/batching/batch.py	2008-02-18 10:13:05 UTC (rev 84011)
@@ -137,6 +137,9 @@
     def __ne__(self, other):
         return not self.__eq__(other)
 
+    def __nonzero__(self):
+        return self._trueSize != 0
+
     def __repr__(self):
         return '<%s start=%i, size=%i>' % (
             self.__class__.__name__, self.start, self.size)



More information about the Checkins mailing list