Split with python
Gabriel Genellina
gagsl-py at yahoo.com.ar
Tue Aug 29 20:12:13 EDT 2006
At Tuesday 29/8/2006 20:31, tobiah wrote:
> >> I have a csv file which is has a field that has something like:
> >>
>But then this fails if there are commas in the
>data. I could split and join on '","' but then
>that fails when 'x' is either the first or last field.
>
>Are there tools in the csv module that make this
>easier?
Yes, just use the csv module and forget all that split&joins...
Gabriel Genellina
Softlab SRL
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
More information about the Python-list
mailing list