On Tue, 07 Sep 2010 11:00:45 +1000, Ben Finney wrote: > If you're going to use the list of float objects, you can convert them > all with a list comprehension. [...] > >>> numbers_as_float = [float(x) for x in numbers_as_str]
That's awfully verbose. A map is simpler: numbers_as_float = map(float, numbers_as_str) -- Steven -- http://mail.python.org/mailman/listinfo/python-list