Skip to content

Conversation

jakirkham
Copy link
Contributor

Older versions of NumPy don't supply the tobytes method. However, it is stated in the NumPy release notes for 1.9.0 ( http://docs.scipy.org/doc/numpy/release.html ) ( https://github.com/numpy/numpy/blob/master/doc/release/1.9.0-notes.rst ) that this behaves the same as tostring. So, this workaround tries to use tostring if tobytes fails.

…tobytes method. However, it is stated in the NumPy release notes for 1.9.0 ( http://docs.scipy.org/doc/numpy/release.html ) ( https://github.com/numpy/numpy/blob/master/doc/release/1.9.0-notes.rst ) that this behaves the same as tostring. So, this workaround tries to use tostring if tobytes fails.
@arokem arokem merged commit 2ebd3f1 into arokem:master Jan 26, 2015
@jakirkham jakirkham deleted the numpy_tobytes_workaround branch January 28, 2015 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants