[Python-Dev] decorate-sort-undecorate
Greg Ewing
greg at cosc.canterbury.ac.nz
Mon Oct 13 21:00:58 EDT 2003
More information about the Python-Dev mailing list
Mon Oct 13 21:00:58 EDT 2003
- Previous message: [Python-Dev] decorate-sort-undecorate
- Next message: [Python-Dev] decorate-sort-undecorate
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 +--------------------------------------+
- Previous message: [Python-Dev] decorate-sort-undecorate
- Next message: [Python-Dev] decorate-sort-undecorate
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list