Search notes:

bytearray

ba = bytearray(bytes('Renè', encoding='utf-8'))
print(ba.decode('utf-8'))  # Renè
ba[4] = 169
print(ba.decode('utf-8'))  # René

See also

Python: Built in functions such as bytes

Index