[Python-Dev] inline sort option

Raymond Hettinger python at rcn.com
Thu Oct 16 15:18:08 EDT 2003


[Guido van Rossum]
> > *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).

[Aahz]
> Let's make explicit: l.copysort()
> 
> I'm not a big fan of grammatical suffixes for distinguishing between
> similar meanings.

+1


Raymond




More information about the Python-Dev mailing list