On Aug 25, 8:49 am, Peter Otten <__pete...@web.de> wrote:
> JKPeck wrote:
> > On Aug 24, 10:43 pm, John Yeung wrote:
> >> On Aug 24, 5:00 pm, Peter Otten <__pete...@web.de> wrote:
>
> >> > If I understand you correctly the csv.writer already does
> >> > what you want:
>
> >> > >>> w.writerow([1,No
JKPeck wrote:
> On Aug 24, 10:43 pm, John Yeung wrote:
>> On Aug 24, 5:00 pm, Peter Otten <__pete...@web.de> wrote:
>>
>> > If I understand you correctly the csv.writer already does
>> > what you want:
>>
>> > >>> w.writerow([1,None,2])
>> > 1,,2
>>
>> > just sequential commas, but that is the sp
On Aug 24, 10:43 pm, John Yeung wrote:
> On Aug 24, 5:00 pm, Peter Otten <__pete...@web.de> wrote:
>
> > If I understand you correctly the csv.writer already does
> > what you want:
>
> > >>> w.writerow([1,None,2])
> > 1,,2
>
> > just sequential commas, but that is the special treatment.
> > Witho
On Aug 24, 5:00 pm, Peter Otten <__pete...@web.de> wrote:
> If I understand you correctly the csv.writer already does
> what you want:
>
> >>> w.writerow([1,None,2])
> 1,,2
>
> just sequential commas, but that is the special treatment.
> Without it the None value would be converted to a string
> an
On Aug 24, 1:30 pm, JKPeck wrote:
> I'm trying to get the csv module (Python 2.6) to write data
> records like Excel. The excel dialect isn't doing it. The
> problem is in writing None values. I want them to result
> in just sequential commas - ,, but csv treats None specially,
> as the doc say
JKPeck wrote:
> I'm trying to get the csv module (Python 2.6) to write data records
> like Excel. The excel dialect isn't doing it. The problem is in
> writing None values. I want them to result in just sequential commas
> - ,, but csv treats None specially, as the doc says,
>
> "To make it as
On Aug 24, 11:30 am, JKPeck wrote:
> I'm trying to get the csv module (Python 2.6) to write data records
> like Excel. The excel dialect isn't doing it. The problem is in
> writing None values. I want them to result in just sequential commas
> - ,, but csv treats None specially, as the doc says
I'm trying to get the csv module (Python 2.6) to write data records
like Excel. The excel dialect isn't doing it. The problem is in
writing None values. I want them to result in just sequential commas
- ,, but csv treats None specially, as the doc says,
"To make it as easy as possible to interf