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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to