On Mon, 18 May 2009 00:51:43 -0700 (PDT)
"boblat...@googlemail.com" <boblat...@googlemail.com> wrote:

> this is the conversion I'm looking for:
> 
> ['1.1', '2.2', '3.3'] -> (1.1, 2.2, 3.3)

Since itertools are useful in nearly every module and probably are
imported already...

  import itertools as it
  ftuple = tuple(it.imap( float, line.split('; ') ))

-- 
Mike Kazantsev // fraggod.net

Attachment: signature.asc
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to