[Python-Dev] decorate-sort-undecorate

Greg Ewing greg at cosc.canterbury.ac.nz
Mon Oct 13 21:00:58 EDT 2003


Ian Bicking <ianb at colorstudy.com>:
> [s for s in lst sortby s.lower()]
>> It reads nicely, and avoids lambdas and tiny helper functions. Also 
> handles the sort-returns-None criticism. But it adds syntax.

And makes the definition of list semantics in terms of
an equivalent for-loop nest much less elegant.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	 | A citizen of NewZealandCorp, a	 |
Christchurch, New Zealand	 | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz	 +--------------------------------------+


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /