[Numpy-discussion] fromfile and ticket #1152
Charles R Harris
charlesr.harris at gmail.com
Fri Jun 26 21:13:45 EDT 2009
The question is: what should happen when fewer items are read than
requested. The current behaviour is
1) Error message written to stderr (needs to be fixed)
2) If 0 items are read then nomemory error is raised ;)
So, should a warning be raised and an array returned with however many
items were read? Meaning an empty array if nothing was read. Or should
and error be raised in this circumstance? The behaviour is currently
undocumented.
Chuck
More information about the NumPy-Discussion
mailing list