Basic question

Grant Edwards grante at visi.com
Sat May 12 14:47:07 EDT 2007


On 2007-05-12, Dmitry Dzhus <mail at sphinx.net.ru> wrote:

> str="53,20,4,2"
> map(lambda s: float(s), str.split(','))

There's no need for the lambda.

  map(float,str.split(','))

Does exactly the same thing.

-- 
Grant Edwards                   grante             Yow!  I feel like I am
                                  at               sharing a "CORN-DOG" with
                               visi.com            NIKITA KHRUSCHEV...



More information about the Python-list mailing list