how can i change the text delimiter

Amit Khemka khemkaamit at gmail.com
Wed Aug 30 05:28:39 EDT 2006


sonald <sonaldgr8 at gmail.com> wrote:
> Hi,
> Can anybody tell me how to change the text delimiter in FastCSV Parser
> ?
> By default the text delimiter is double quotes(")
> I want to change it to anything else... say a pipe (|)..
> can anyone please tell me how do i go about it?

You can use the parser constructor to specify the field seperator:
Python >>>  parser(ms_double_quote = 1, field_sep = ',', auto_clear = 1)

cheers,
amit.

-- 
----
Amit Khemka -- onyomo.com
Home Page: www.cse.iitd.ernet.in/~csd00377
Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.



More information about the Python-list mailing list