help splitting strings

Emile van Sebille emile at fenx.com
Thu Apr 18 12:43:36 EDT 2002


"Tony Case" 
> I'm pretty new to Python which probably explains my problems,
> I'm trying to read data from a number of comma separated variable
> files.  These are fairly large, 5000 lines plus.
> I'm reading the files and using split to separate the
> individual values, some numeric some string.  The problem is that a
> number of the lines have commas and double quotes embeded in the

Sounds like you need the CSV module.  Take a look at

http://www.object-craft.com.au/projects/csv/

--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list