[ZPT] Fiddly repeat

Charlie Clark charlie at begeistert.org
Wed Sep 24 08:32:03 EDT 2003


On 2003-09-24 at 13:57:04 [+0200], Charlie Clark wrote:
> > return [[x.value for x in results[lstart:lstart+columns]] for lstart in 
> > range(0,len(results),columns)]

mm, would work with a list object but not with a Zope results object which 
can do slicing and thus raises an IndexError.

Charlie



More information about the ZPT mailing list