what about :

factors = [map(float, line.split()) for line in file]

should be a hell of a lot faster and nicer.

             for line in f:
                 factor = []
                 tokens = line.split()
                 for i in tokens:
                     factor.append(float(i))
                 factors.append(factor)

Is this nasty?

Jim

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

Reply via email to