list.reverse()

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Tue Apr 29 09:52:25 EDT 2008


Roy Smith a écrit :
(snip)

> The reasoning goes along the lines of, "reverse in place is an expensive 
> operation, so we don't want to make it too easy for people to do".  At 
> least that's the gist of what I got out of the argument the many times it 
> has come up.

IIRC, it's more along the line of "reverse in place is a *destructive* 
operation, so we don't want to make it too easy for people to forget 
about it".




More information about the Python-list mailing list