> I like "sort" better than "decorator"; I would also like "by", as in > sort(names, by=ages.__getitem__). > > I would also advocate an optional reverse=False argument, so that > > result = sort(names, reverse=True) > > is equivalent to > > result = sort(names) > result.reverse() While we're at it, +1. --Guido van Rossum (home page: http://www.python.org/~guido/)
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