[NumPy-Tickets] [NumPy] #1660: ~2**32 byte tofile()/fromfile() limit in 64-bit Windows
NumPy Trac
numpy-tickets@scipy....
Wed Nov 3 23:33:21 CDT 2010
#1660: ~2**32 byte tofile()/fromfile() limit in 64-bit Windows
------------------------------------------------------+---------------------
Reporter: mspacek | Owner: somebody
Type: defect | Status: needs_review
Priority: normal | Milestone: 1.5.1
Component: numpy.core | Version: 1.5.0
Keywords: tofile fromfile save load 64-bit windows |
------------------------------------------------------+---------------------
Comment(by mspacek):
Also, I think I've figured out why the IOError was being raised during the
direct call to np.fromfile(), but not during the indirect call via
np.load(). fromfile's count arg defaults to -1, specifying all entries,
which drops it into the loop in /numpy/core/src/multiarray/ctors.c line
~3037. There, it explicitly does some normal 32 bit seek calls, and those
were failing. In np.load(), fromfile is called with count set explicitly
to something positive, which means all the seeking stuff is skipped, and
it goes clean through to the fread call without any problems.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1660#comment:10>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list