[Numpy-tickets] [NumPy] #436: a[::-1].tofile(f) creates junk
NumPy
numpy-tickets at scipy.net
Fri Jan 26 20:22:26 CST 2007
#436: a[::-1].tofile(f) creates junk
----------------------+-----------------------------------------------------
Reporter: sebhaase | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version:
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
Hi!
`arr.tofile(f)` creates garbage in `f`.
`f` in my case is an open file object at position 1024
(that's the length of our file format's header)
{{{
N.__version__
'1.0.1'
}}}
It cannot determine what exactly goes wrong - the file size seems to be
varying even if `arr` always has the same size (my `arr` has
`dtype=uint16`)
Thanks,
Sebastian Haase
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/436>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list