On Mon, 18 May 2009 00:51:43 -0700 (PDT) "[email protected]" <[email protected]> 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
signature.asc
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list
