[Numpy-discussion] numpy.load raising IOError but EOFError expected
Pauli Virtanen
pav at iki.fi
Mon Jun 28 16:53:47 EDT 2010
ma, 2010-06-28 kello 15:48 -0400, Anne Archibald kirjoitti:
[clip]
> That said, good exception hygiene argues that np.load should throw
> EOFErrors rather than the more generic IOErrors, but I don't know how
> difficult this would be to achieve.
np.load is in any case unhygienic, since it tries to unpickle, if it
doesn't see the .npy magic header.
--
Pauli Virtanen
More information about the NumPy-Discussion
mailing list