[Numpy-discussion] loadtxt stop

Benjamin Root ben.root@ou....
Fri Sep 17 15:13:09 CDT 2010


On Fri, Sep 17, 2010 at 3:04 PM, Zachary Pincus <zachary.pincus@yale.edu>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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100917/bd08a654/attachment.html 


More information about the NumPy-Discussion mailing list