oc-spam66 | 8 Aug 10:42 2008
Picon

Re: numpy.fromstring() : error handling ?

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.

_______________________________________________
Numpy-discussion mailing list
Numpy-discussion <at> scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Gmane