| def reverse( self ): | """ | Return a reversed copy of string. | """ | string = [ x for x in self.__str__() ] | string.reverse() | return ''.join( string )
def reverse(self): return self[::-1]
Kent -- http://mail.python.org/mailman/listinfo/python-list