[Numpy-discussion] deprecate fromstring() for text reading?
Marten van Kerkwijk
m.h.vankerkwijk at gmail.com
Thu Oct 22 18:35:28 EDT 2015
I think it would be good to keep the usage to read binary data at least. Or
is there a good alternative to `np.fromstring(<bytes>, dtype=...)`? --
On Thu, Oct 22, 2015 at 1:03 PM, Chris Barker <chris.barker at noaa.gov> wrote:
> There was just a question about a bug/issue with scipy.fromstring (which
> is numpy.fromstring) when used to read integers from a text file.
> fromstring() is bugging and inflexible for reading text files -- and it is
> a very, very ugly mess of code. I dug into it a while back, and gave up --
> just to much of a mess!
> So we really should completely re-implement it, or deprecate it. I doubt
> anyone is going to do a big refactor, so that means deprecating it.
> Also -- if we do want a fast read numbers from text files function (which
> would be nice, actually), it really should get a new name anyway.
> (and the hopefully coming new dtype system would make it easier to write
> I'm not sure what deprecating something means, though -- have it raise a
> deprecation warning in the next version?
> Christopher Barker, Ph.D.
> Emergency Response Division
> NOAA/NOS/OR&R (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
> Chris.Barker at noaa.gov
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion