try doing that without bytearray.
i'd argue that b'foo' (a literal) becomes a regular character string because
or can you make any code which produces an actual bytes (not bytearray) type?
i've been doing stuff in Python3. but i still like to make my code work (and work right) in Python2. that is because many systems still come with Python2 but not Python3 ready to use (even though installing or upgrading to Python3 is an available option for many).
i'd argue that b'foo' (a literal) becomes a regular character string because
bytes==str
is True. does this work in 2.0? does 2.0 matter any more?or can you make any code which produces an actual bytes (not bytearray) type?
i've been doing stuff in Python3. but i still like to make my code work (and work right) in Python2. that is because many systems still come with Python2 but not Python3 ready to use (even though installing or upgrading to Python3 is an available option for many).
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.