In Python 3, lets say I have a string of bytes:
my_byte_string = b'\x07L\x1b\xa8b\x8f\xba\x1b{\x1c\x16CwW\xa5\xae!\x93MY'
and I use the base64 module to get this:
my_base64_string = base64.b64encode(my_byte_string)
print(my_base64_string)
b'B0wbqGKPuht7HBZDd1elriGTTVk='
When I do this, I am confused about what happens to the '\' characters. I know that they indicate separation of different bytes, but are they being encoded by b64encode like the other characters, or are they being ignored?
\n- that is not stored as two characters but as the character equivalent of a newline for your platform.