>> 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
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to