Peter Otten <[EMAIL PROTECTED]> writes:
> >    for s_name, series in serialized:
> >      grouped = groupby(series, keyfunc)
> >      regrouped = ((k, (v[1] for v in g)) for (k,g) in grouped)
> >      serieses.append((s_name, regrouped))
> 
> You are trying to store a group for later consumption here. 

Good catch, the solution is to turn that loop into a generator,
but then it has to be consumed very carefully.  This stuff
maybe presses the limits of what one can do with Python iterators
while staying sane.  
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to