roses are red
violets are blue
use python 3
not python 2

@marble it seems to have changed from
bytes("hello")
to
bytes("hello", "ascii")

Follow

@lynnesbian and now do
b'\xaa{}'.format(1)
^^

@lynnesbian

for b in b'hello':
print(type(b))

the iterator in python3 gives an int and not a char

@marble yeah it seems like you have to use percent formatting which is gross

@lynnesbian
I like to use python for data processing for stuff like byte level data processing and python3 makes it unnecessarily hard

@lynnesbian
And apparently every time some addresses this issue on the python dev ML the credo is
"this is edge case - no fix needed - works for me"

Sign in to participate in the conversation
chaos.social

chaos.social - because anarchy is much more fun with friends.
chaos.social is a small Mastodon instance for and by the Chaos community surrounding the Chaos Computer Club. We provide a small community space - Be excellent to each other, and have a look at what that means around here.
Follow @ordnung for low-traffic instance-related updates.
The primary instance languages are German and English.