[Python-Dev] methods on the bytes object (original) (raw)

Fredrik Lundh fredrik at pythonware.com
Mon May 1 23:55:01 CEST 2006


Martin v. Löwis wrote:

Ok. I think I would use base64, of possibly compressed content. It's more compact than your representation, as it only uses 1.3 characters per byte, instead of the up-to-four bytes that the img2py uses.

only if you're shipping your code as PY files. in PYC format (ZIP, PY2EXE, etc), the img2py format is more efficient.



More information about the Python-Dev mailing list