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

Guido van Rossum guido at python.org
Fri Feb 15 18:37:43 CET 2008


On Thu, Feb 14, 2008 at 4:52 PM, Raymond Hettinger <python at rcn.com> wrote:
> Would it be worthwhile to leave reversed(s) and s[::-1] as the two obvious ways to do it (ways that work with any Sequence, not just lists)?

I think we should keep it. There's no faster way to reverse a list in place.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list