Python Love :)

Paul Rubin http
Mon Mar 13 13:28:50 EST 2006


Peter Otten <__peter__ at web.de> writes:
> >>> print reversed("abba")
> <reversed object at 0x4029454c>

Darn, yes, that's the second time in the past couple weeks I've made
that exact same error in a clpy post.  So what's the most concise way
of turning it back into a string?  ''.join(list(reversed(a_string))) ?
Bleccch.



More information about the Python-list mailing list