[Numpy-discussion] fromfile and ticket #1152

Charles R Harris charlesr.harris@gmail....
Fri Jun 26 20:13:45 CDT 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