John Salerno wrote: > rick wrote: > >> Why can't Python have a reverse() function/method like Ruby? > > > I'm not steeped enough in daily programming to argue that it isn't > necessary, but my question is why do you need to reverse strings?
It would provide symmetry for reversing any sequence (without requiring an iterator). (1,2,3).reversed() "123".reversed() [1,2,3].reversed() -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 http://www.jamesstroud.com/ -- http://mail.python.org/mailman/listinfo/python-list