Fast attribute/list item extraction

Michael Hudson mwh at
Mon Dec 1 19:39:08 CET 2003

Paul Rubin <> writes:

> "Raymond Hettinger" <vze4rx4y at> writes:
> > Not only is the lambda unattractive, it is slow.  This situation is
> > not unique to sort(), it comes up with other functionals like map()
> > and filter().  A new itertool called groupby() also faces the same
> > situation.
> > 
> > So, the idea was born to add a fast extract function maker to the operator
> > module:
> Better to improve the compiler so that lambda makes good code.

Any ideas how to do that?


  > With Python you can start a thread, but you can't stop it.  Sorry.
  > You'll have to wait until reaches the end of execution.
  So, just the same as, then?
                       -- Cliff Wells & Steve Holden, comp.lang.python

More information about the Python-list mailing list