&gt; &quot;\x01\x02&quot;.encode(&#x27;zlib&#x27;) for instance is a bytes to bytes operation.<p>I think the inclusion of things like zlib (or rot13 or whatever) was a conceptual error that just fosters confusion.