Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: oc-spam66 <oc-spam66 <at> laposte.net>
Subject: Re: numpy.fromstring() : error handling ?
Newsgroups: gmane.comp.python.numeric.general
Date: Friday 8th August 2008 08:42:07 UTC (over 8 years ago)
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 [email protected] 
 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
 
CD: 4ms