> Well, it turns out to be the best way to invert a string, IMO. The
> reversed() feature returns a reversed object... not a reversed string.
> In short, I have to fool with it again _after_ it has been inverted. The
> slicing takes care of the job right away and gives me what I want... no
> Computer Sciencey > to deal with :)
A can be turned back into a string:
>>> st = '0123456789'
>>> reversed(st)
>>> ''.join( reversed(st) )
'9876543210'
>
> I'm sure the reversed feature is much more generic though for dealing
> with other types.
--
http://mail.python.org/mailman/listinfo/python-list