8.2.57.14 string.reverse_bytes

Method: out = reverse_bytes (obj)

Reverse string, byte-wise.

Reverses the bytes in each string in obj. This operates on bytes (Unicode code units), not characters.

This may well produce invalid strings as a result, because reversing a UTF-8 byte sequence does not necessarily produce another valid UTF-8 byte sequence.

You probably do not want to use this method. You probably want to use string.reverse instead.

Returns a string array the same size as obj.

See also: string.reverse