[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/Lazy.py Add some clarifications to the documentation comments.

Martijn Pieters mj at zopatista.com
Fri Jun 25 16:26:23 EDT 2004


Log message for revision 25987:
Add some clarifications to the documentation comments.



-=-
Modified: Zope/trunk/lib/python/Products/ZCatalog/Lazy.py
===================================================================
--- Zope/trunk/lib/python/Products/ZCatalog/Lazy.py	2004-06-25 20:12:31 UTC (rev 25986)
+++ Zope/trunk/lib/python/Products/ZCatalog/Lazy.py	2004-06-25 20:26:23 UTC (rev 25987)
@@ -161,7 +161,8 @@
 
 class LazyFilter(Lazy):
     # Act like a sequence, but get data from a filtering process.
-    # Don't access data until necessary
+    # Don't access data until necessary. Only data for which test(data) 
+    # returns true will be considered part of the set.
 
     def __init__(self, test, seq):
         self._seq=seq
@@ -202,7 +203,10 @@
 
 class LazyMop(Lazy):
     # Act like a sequence, but get data from a filtering process.
-    # Don't access data until necessary
+    # Don't access data until necessary. Only data for which test(data) 
+    # returns true will be considered part of the set. Exceptions raised
+    # in the test method are ignored and treated like test(data) return a
+    # false value.
 
     def __init__(self, test, seq):
         self._seq=seq



More information about the Zope-Checkins mailing list