[Numpy-discussion] numpy.fromstring() : error handling ?
Zachary Pincus
zachary.pincus@yale....
Thu Aug 7 16:27:52 CDT 2008
> the following code drives python into an endless loop :
>
> >>> import numpy
> >>> numpy.fromstring("abcd", dtype = float, sep = ' ')
It works on OS X 10.5.4 with a today's SVN head of numpy:
In [1]: import numpy
In [2]: numpy.fromstring("abcd", dtype = float, sep = ' ')
Out[2]: array([ 0.])
In [3]: numpy.version.version
Out[3]: '1.2.0.dev5619'
Perhaps this was fixed recently, or the bug is platform-specific?
Zach
On Aug 7, 2008, at 4:44 PM, oc-spam66 wrote:
> Hello,
>
> the following code drives python into an endless loop :
>
> >>> import numpy
> >>> numpy.fromstring("abcd", dtype = float, sep = ' ')
>
> I think the function numpy.fromstring is lacking an adequate error
> handling for that case.
>
> Is it a bug ?
>
> Regards,
>
> --
> O.C.
> Python 2.5.2
> Debian Lenny
>
>
> Créez votre adresse électronique prenom.nom@laposte.net
> 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
More information about the Numpy-discussion
mailing list