Newbie Question

Gabriel Cooper gabriel.cooper at mediapulse.com
Fri Aug 19 16:44:33 CEST 2005


look into the csv module. (for comma-separated-value text files.)

Tom Strickland wrote:

>I have a file that contains many lines, each of which consists of a string 
>of comma-separated variables, mostly floats but some strings. Each line 
>looks like an obvious tuple to me. How do I save each line of this file as a 
>tuple rather than a string? Or, is that the right way to go?
>
>Thank you.
>
>Tom Strickland 
>  
>




More information about the Python-list mailing list