bauman / python-idzip

Seekable, gzip compatible, compression format
MIT License
15 stars 12 forks source link

use bytearray instead of bytes for compatibility with Py2 #2

Closed mobiusklein closed 6 years ago

mobiusklein commented 6 years ago

In Python 3, bytes([12]) and bytearray([12]) translates to the same binary representation, "\x0c", while in Python 2, bytes([12]) is the same as str([12]), which is "[12]", but bytearray([12]) still returns the same construct as in Python 3.

Is there any interest in putting this on the Python Package Index so other libraries can depend upon it?

bauman commented 6 years ago

good call, I missed this when I merged.

https://github.com/bauman/python-idzip/pull/1/files