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

Steven Bethard steven.bethard at gmail.com
Fri Feb 15 01:59:59 CET 2008


On Thu, Feb 14, 2008 at 5: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)?

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

Steve
-- 
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
 --- Bucky Katt, Get Fuzzy


More information about the Python-3000 mailing list