On 2007-05-12, Dmitry Dzhus <[EMAIL PROTECTED]> 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...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to