diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:16:05 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:16:05 +0000 |
commit | 2cd9854ecd3b5428744399d05b7c450fa0603a81 (patch) | |
tree | a8f1de84eab448a48a7dfe5d913bc4a4b24c9b72 /numpy/lib/arrayterator.py | |
parent | e247b1d3d3a93b5119524ce6306239415e89ae74 (diff) | |
download | numpy-2cd9854ecd3b5428744399d05b7c450fa0603a81.tar.gz |
ENH: lib: write fortran-contiguous data to files using arr.T.tofile instead of arr.data (required for Py3 compatibility)
The issue is that when passing a buffer object to Python's
io.BufferedWriter.write, it will try to obtain the buffer using PyBUF_ND
| PyBUF_C_CONTIGUOUS. This will fail for strided arrays -- seems to be
an issue in Python, as it probably should try to obtain a SIMPLE buffer.
Diffstat (limited to 'numpy/lib/arrayterator.py')
0 files changed, 0 insertions, 0 deletions