[Numpy-discussion] numpy.fromstring() : error handling ?

oc-spam66 oc-spam66@laposte....
Fri Aug 8 03:42:07 CDT 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@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://projects.scipy.org/pipermail/numpy-discussion/attachments/20080808/fa690a21/attachment.html 


More information about the Numpy-discussion mailing list