> It would be nice to have, at times, sort() return the sorted list, > but doing so could lead people to believe that returns a sorted copy of > the list. What about if we could do "list.sort(returnAfterSorting = 1)" > or something? It'd be nice if it were short and sweet, but it should > be clear what it's doing too... Nah, this is not provided precisely for the reason you give. You can write your own utility easily enough: def sort(L): L.sort() return L --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