lebedov / msgpack-numpy

Serialize numpy arrays using msgpack
Other
194 stars 33 forks source link

Added Python 3 support #11

Closed cjermain closed 8 years ago

cjermain commented 8 years ago

This PR adds Python 3 support, with testing done on Python 3.4.3 and Python 2.7.6.

The defaults of packing and unpacking are modified following the msgpack-python notes on string and binary types, which suggest the use of use_bin_type=True for packing and encoding='utf-8' for unpacking.

The range function replaces xrange in the tests.

davidchall commented 8 years ago

It'd be great if you could make a release with this, please. I just spent a while trying to figure this out.

lebedov commented 8 years ago

Sure - new version uploaded to pypi.

davidchall commented 8 years ago

Thanks!