On Fri, Sep 17, 2010 at 3:04 PM, Zachary Pincus <[email protected]>wrote:

> On Sep 17, 2010, at 3:59 PM, Benjamin Root wrote:
>
> > So, this code will still raise an error for an empty file.
> > Personally, I consider that a bug because I would expect to receive
> > an empty array.  I could understand raising an error for a non-empty
> > file that does not contain anything useful.  For comparison, Matlab
> > returns an empty matrix for loading an emtpy text file.
> >
> > This has been a long-standing annoyance for me, along with the
> > behavior with a single-line data file.
>
> Agreed... I just wanted to make the patch as identical in behavior to
> the old version as possible. Though again, simple shims around loadtxt
> (as in my previous examples) can yield the desired behavior easily
> enough.
>
>
Fair enough.  No need to mix a bugfix with a feature request.

Ben Root
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to