R
rolandschulz
Hi,
why does
from numpy import *
a=array([.2])
print map(type,map(float,a))
print "%f"%map(float,a)
give :TypeError: float argument required
This is confusing because line 3 returns [<type 'float'>].
This is on python 2.5.2 and numpy 1.2.1.
Roland
why does
from numpy import *
a=array([.2])
print map(type,map(float,a))
print "%f"%map(float,a)
give :TypeError: float argument required
This is confusing because line 3 returns [<type 'float'>].
This is on python 2.5.2 and numpy 1.2.1.
Roland