> "\x01\x02".encode('zlib') for instance is a bytes to bytes operation.
I think the inclusion of things like zlib (or rot13 or whatever) was a conceptual error that just fosters confusion.
I think the inclusion of things like zlib (or rot13 or whatever) was a conceptual error that just fosters confusion.
We should not optimize languages for idiots. There is nothing confusing about such an operation for anyone who can use their brain. Python 3 still contains those operations but instead of x.encode(y) you now do encode(x, y).