Thu, 21 May 2009 12:14:18 -0600, Michael Hearne wrote: > All: Never mind! The file I was attempting to read was part of an > (apparently) silently incomplete download, and as such, the file size > didn't match the metadata in the header file describing the data file, > and I was reading beyond the end of the file. > > I would submit that MemoryError is perhaps a little misleading for this > particular case, but oh well.
Well, that it raises MemoryError in this case is a bug, so maybe a ticket should be filed. There's another bug associated with reading empty files: http://projects.scipy.org/numpy/ticket/1115 which is maybe related. -- Pauli Virtanen _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion