Re: codecs, csv issues

2008-08-22 Thread John Machin
On Aug 22, 11:52 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > I'm trying to use codecs.open() and I see two issues when I pass > encoding='utf8': > > 1) Newlines are hardcoded to LINEFEED (ascii 10) instead of the > platform-specific byte(s). > > import codecs > f = codecs.open('tmp.txt',

Re: codecs, csv issues

2008-08-22 Thread Peter Otten
George Sakkis wrote: > I'm trying to use codecs.open() and I see two issues when I pass > encoding='utf8': > > 1) Newlines are hardcoded to LINEFEED (ascii 10) instead of the > platform-specific byte(s). > > import codecs > f = codecs.open('tmp.txt', 'w', encoding='utf8') > s = u'\u0

codecs, csv issues

2008-08-22 Thread George Sakkis
I'm trying to use codecs.open() and I see two issues when I pass encoding='utf8': 1) Newlines are hardcoded to LINEFEED (ascii 10) instead of the platform-specific byte(s). import codecs f = codecs.open('tmp.txt', 'w', encoding='utf8') s = u'\u0391\u03b8\u03ae\u03bd\u03b1' print >

Re: CSV Issues

2007-07-18 Thread Lutz Horn
Hi, On Thu, 19 Jul 2007 06:59:24 +0200, Rohan <[EMAIL PROTECTED]> wrote: > When I run the script for the second time after a certain period of > time the results should appear next to the results of the last run, > I'm unable to make a new column when the script is run after the first > time. > Id

CSV Issues

2007-07-18 Thread Rohan
Hello, I'm working on a script which collects some data and puts into a csv file which could be exported to excel. so far so good, I'm able to do what I described. When I run the script for the second time after a certain period of time the results should appear next to the results of the last run,