csv - how to parse a string, not a file?

Alex Hunsley lard at tardis.ed.ac.molar.uk
Sat Jul 10 21:51:01 CEST 2004


Foovoid Null wrote:

> import StringIO
> 
> csvReader = csv.reader(StringIO.StringIO("1,2,3,4"))
> 
> 
> 

Much thanks! That does the job nicely..
alex



More information about the Python-list mailing list