Sathyaish <[EMAIL PROTECTED]> wrote: >How would you reverse a string "in place" in python? > [ ... ] >Forget it! I got the answer to my own question. Strings are immutable, >*even* in python.
I'm not sure what that "*even*" is about, but glad that "You can't, strings are immutable" is a satisfactory answer. Rather than writing your own reversing code, you might like to look at: >>> "".join(reversed("foo")) -- \S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/ ___ | "Frankly I have no feelings towards penguins one way or the other" \X/ | -- Arthur C. Clarke her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
-- http://mail.python.org/mailman/listinfo/python-list