[Python-Dev] genexps Was: "groupby" iterator

Raymond Hettinger python at rcn.com
Sat Nov 29 01:31:45 EST 2003


> >     totals = dict((key, sum(group))
> >                   for key, group in groupby(keyfunc, sequence))
> >
> > exploiting generator expressions too.
> 
> Nice.  When can we get these? :-)


Unless someone in the know volunteers, it will need to wait until
Christmas vacation.  Currently, the implementation is beyond my skill
level.  It will take a while raise my skills to cover adding new syntax
and what to do in the compiler.


Raymond




More information about the Python-Dev mailing list