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

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


Raymond
_______________________________________________
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