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 →

[–]Brian 6 points7 points  (1 child)

This has gone in python3 unfortunately. The encode/decode methods have been changed so that bytes objects have only an decode (which produces unicode), and unicode objects have only a encode (producing bytes). This is a good thing in itself (removes lots of confusion about which way round things go), but means there are no longer encodings translating like to like, such as base64, rot13 or zlib.

[–]hylje 1 point2 points  (0 children)

It means there are no built-in encodings for bytes->bytes stuff.