Re: how can i change the text delimiter

2006-09-04 Thread sonald
Hi, Thanks a lot for the snips you have included in your post... those were quite helpful... And about the 3rd party data we receive the data in csv format ... but we are not supposed to modify the files provided by the user directly... Instead we make another file with the same name & differ

Re: how can i change the text delimiter

2006-08-31 Thread John Machin
sonald wrote: > Hi, > I am using > Python version python-2.4.1 and along with this there are other > installables > like: > 1. fastcsv-1.0.1.win32-py2.4.exe Well, you certainly didn't get that from the object-craft website -- just go and look at their download page http://www.object-craft.com.au/p

Re: how can i change the text delimiter

2006-08-31 Thread Amit Khemka
On 31 Aug 2006 00:25:38 -0700, sonald <[EMAIL PROTECTED]> wrote: > Hi, > I am using > Python version python-2.4.1 and along with this there are other > installables > like: > 1. fastcsv-1.0.1.win32-py2.4.exe > 2. psyco-1.4.win32-py2.4.exe > 3. scite-1.63-setup.exe > > We are freshers here, joined n

Re: how can i change the text delimiter

2006-08-31 Thread Fredrik Lundh
sonald wrote: > Python version python-2.4.1 and along with this there are other > installables like: > 1. fastcsv-1.0.1.win32-py2.4.exe I get zero hits for that file on google. are you sure that's not an in-house tool ? asking comp.lang.python for help on internal tools isn't exactly optimal.

Re: how can i change the text delimiter

2006-08-31 Thread sonald
Hi, I am using Python version python-2.4.1 and along with this there are other installables like: 1. fastcsv-1.0.1.win32-py2.4.exe 2. psyco-1.4.win32-py2.4.exe 3. scite-1.63-setup.exe We are freshers here, joined new... and are now into handling this module which validates the data files, which ar

Re: how can i change the text delimiter

2006-08-30 Thread skip
sonald> fast csv is the the csv module for Python... and actually the sonald> string cannot be modified because it is received from a third sonald> party and we are not supposed to modify the data in any way.. sonald> for details on the fast CSV module please visit sonald> w

Re: how can i change the text delimiter

2006-08-30 Thread Fredrik Lundh
"sonald" wrote: > fast csv is the the csv module for Python... no, it's not. the csv module for Python is called "csv". > and actually the string cannot be modified because > it is received from a third party and we are not supposed to modify the > data in any way.. that doesn't prevent you fr

Re: how can i change the text delimiter

2006-08-30 Thread sonald
Hi , thanks for the reply... fast csv is the the csv module for Python... and actually the string cannot be modified because it is received from a third party and we are not supposed to modify the data in any way.. for details on the fast CSV module please visit www.object-craft.com.au/projects

Re: how can i change the text delimiter

2006-08-30 Thread skip
sonald> Can anybody tell me how to change the text delimiter in FastCSV sonald> Parser? By default the text delimiter is double quotes(") I sonald> want to change it to anything else... say a pipe (|).. can sonald> anyone please tell me how do i go about it? I'm not familiar wit

Re: how can i change the text delimiter

2006-08-30 Thread Fredrik Lundh
"sonald" wrote: > Thanks for a quick response... > E.g record is: "askin"em" that's usually stored as "askin""em" in a CSV file, and the csv module has no problem handling that: >>> import csv, StringIO >>> source = StringIO.StringIO('"askin""em"\n') >>> list(csv.reader(source))

Re: how can i change the text delimiter

2006-08-30 Thread sonald
Hi Amit, Thanks for a quick response... E.g record is: "askin"em" This entire text is extracted as one string but since the qualifier is double quotes("), therefore fastcsv parser is unable to parse it. If we can change the text qualifier to pipe(|), then the string will look like this: |askin"em

Re: how can i change the text delimiter

2006-08-30 Thread Amit Khemka
On 8/30/06, Amit Khemka <[EMAIL PROTECTED]> wrote: > sonald <[EMAIL PROTECTED]> 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 (|).. Btw, I

Re: how can i change the text delimiter

2006-08-30 Thread Amit Khemka
sonald <[EMAIL PROTECTED]> 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 pars