Michael O'Keefe wrote: > I'm sure there are other ways to do this as well but what do people > think? Has something like this come up before? Yes, this has come up before, and list.sort and list.reverse were identified as the methods people were most likely to want to chain. The sorted() and reversed() builtins were the result. Also, the spelling you propose creates a horrible confusion when calling a method which already has a real return value (like list.pop). Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org
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