[Python-Dev] inline sort option
Shane Holloway (IEEE)
shane.holloway at ieee.org
Thu Oct 16 16:00:31 EDT 2003
More information about the Python-Dev mailing list
Thu Oct 16 16:00:31 EDT 2003
- Previous message: [Python-Dev] inline sort option
- Next message: [Python-Dev] Re: inline sort option
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum wrote: > *If* we're going to consider this, I would recommend using a different > method name rather than a keyword argument. Arguments whose value > changes the return type present a problem for program analysis tools > like type checkers (and IMO are also easily overseen by human > readers). And, it's easier to write l.sorted() rather than > l.sort(inline=True). > > --Guido van Rossum (home page: http://www.python.org/~guido/) I'd like to see that as an inplace sort still -- because copysort is easy to get to... l.sorted() # inplace sort, returning self l[:].sorted() # copy sort, returning new list Just my 1/50th of a dollar. ;) -Shane Holloway
- Previous message: [Python-Dev] inline sort option
- Next message: [Python-Dev] Re: inline sort option
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list