Jul-27-2019, 12:53 AM
data in the source code needs to be put in quotes. use a type of quote different than any quotes that are part of the data. make the string be bytes type by putting the b just before the starting quote. do not put r in front because that kind of raw will make your \x stuff not work.
for what you are doing you need binary. that is what the bytes type is. your use of the term "raw" for this is not the same meaning as python's meaning of "raw". you do not need python's raw. so don't even think of trying to use it. just use bytes. and bytes literal looks like
are you using python version 3? you need to be. bytes are not real bytes in version 2.
for what you are doing you need binary. that is what the bytes type is. your use of the term "raw" for this is not the same meaning as python's meaning of "raw". you do not need python's raw. so don't even think of trying to use it. just use bytes. and bytes literal looks like
b'this is bytes'
.are you using python version 3? you need to be. bytes are not real bytes in version 2.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.