On Wednesday 17 December 2003 04:19 pm, Raymond Hettinger wrote: > I think sorted() is better: > > * the context makes it clear that it's not a predicate > * the name helps distinguish it from list.sort() > * it fits with reversed() > * looking at actual code using sorted(), it reads well sorted() returns a list, and reversed() returns an iterator. That seems like a recipe for confusion, *especially* because they "fit" together and do completely different things. Jeremy
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