[Numpy-discussion] numpy.fromstring() : error handling ?
oc-spam66
oc-spam66 at laposte.net
Fri Aug 8 04:42:07 EDT 2008
Thank you for the answers,
I am now disturbed by this result :
> In [1]: import numpy
> In [2]: numpy.fromstring("abcd", dtype = float, sep = ' ')
> Out[2]: array([ 0.])
Shouldn't it raise an exception ValueError ? (because "abcd" is not a float)
Regards,
O.C.
Créez votre adresse électronique prenom.nom at laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080808/fa690a21/attachment.html>
More information about the NumPy-Discussion
mailing list