A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/038672.html below:

[Python-Dev] decorate-sort-undecorate

[Python-Dev] decorate-sort-undecorate [Python-Dev] decorate-sort-undecorateGreg 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4