[Zope-Checkins] CVS: Products/ZCatalog - Lazy.py:1.5
andreasjung@cvs.baymountain.com
andreasjung@cvs.baymountain.com
Tue, 24 Jul 2001 16:46:28 -0400
Update of /cvs-repository/Products/ZCatalog
In directory cvs.zope.org:/tmp/cvs-serv26428/lib/python/Products/ZCatalog
Modified Files:
Lazy.py
Log Message:
- Collector #2438: Using a slice operation like [30:] on a
ZCatalog search result caused a MemoryError because
the __getslice__ implementation used range() instead
of xrange().
=== Products/ZCatalog/Lazy.py 1.4 => 1.5 ===
def __getslice__(self,i1,i2):
r=[]
- for i in range(i1,i2):
+ for i in xrange(i1,i2):
try: r.append(self[i])
except IndexError: return r
return r