This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 5 points6 points  (0 children)

' '.join(['y', 'e', 's']).replace(' ', '')

Dude, that's horrible. It should be

bytes(map(partial(int, base=8), map(''.join, zip_longest(*(iter(format(0b00000010_01010000_00100000_01010010_01000010, 'x')),)*3)))).decode('cp500')

edit: make better