Fast attribute/list item extraction

Paul Rubin http
Mon Dec 1 06:15:24 EST 2003


"Raymond Hettinger" <vze4rx4y at verizon.net> 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.




More information about the Python-list mailing list