[Python-3000] Drop list.reverse()?

skip at pobox.com skip at pobox.com
Fri Feb 15 02:33:22 CET 2008


    >> But .reverse() is in-place, while the other two create new sequences, no? 

    Raymond> reversed(s) creates an iterator and s[::-1] creates a new list.
    Raymond> They are not the same as s.reverse() but the use cases overlap
    Raymond> quite a bit.

If s.reverse() is dumped shouldn't s.sort() be as well?

Skip


More information about the Python-3000 mailing list