Dec. 31, 2005
8:39 a.m.
I just checked in to SVN, the changes needed to allow strings (and unicode) to be converted to numbers:
print array(['3.0','4','5','6']).astype(float) array([ 3., 4., 5., 6.])
It is not the fastest-possible approach (it goes through the Python int, long, float, and complex __new__ methods), but it works. -Travis
7408
Age (days ago)
7408
Last active (days ago)
0 comments
1 participants
participants (1)
-
Travis Oliphant