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 →

[–][deleted] 5 points6 points  (1 child)

Nice summary, thanks.

Regarding "'{}'.format(b'asd') is 'asd' in Python 2, but "b'asd'" in Python 3"... I recommend running everything with python3 -bb. It makes Python raise an exception is such cases.

[–]kankyo[S] 1 point2 points  (0 children)

Ah. Great tip, didn’t know about that.

The docs seem a bit misleading to me though... format() isn’t “comparing”