Kevin J. Butler <python-kbutler at sabaydi.com> wrote: > > I think just about everyone gets tripped up by the "sort returns None" > behavior, and though one (e.g., BDFL) can declare that it is a less > significant stumble than not realizing the list is sorted in place, it > is a _continuing_ inconvenience, with virtually every call to [].sort, > even for Python experts (like Barry, not me). Sure. I regularly find myself wishing "foo.sort().reverse()" and similar constructions would work, even in-place. Charles -- ----------------------------------------------------------------------- Charles Cazabon <python at discworld.dyndns.org> GPL'ed software available at: http://www.qcc.ca/~charlesc/software/ -----------------------------------------------------------------------
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