5 Mar
2021
5 Mar
'21
3:32 p.m.
On Tue, 2 Mar 2021 at 21:44, Memz
foo+= 255 # Works the same as bytesvariable+=b"ΓΏ"
foo = b"%b%d" % (foo, 255)
foo+= a"\x255\x00" # Concatenation with itself
foo = b"%b%b" % (foo, foo) See PEP461: Adding % formatting to bytes and bytearray https://www.python.org/dev/peps/pep-0461/ "With Python 3 and the split between str and bytes, one small but important area of programming became slightly more difficult, and much more painful -- wire format protocols." Martin