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 +--------------------------------------+
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