Where is the syntax for the dict() constructor ?!

Neil Cerutti horpner at yahoo.com
Fri Jul 6 08:31:18 EDT 2007


On 2007-07-05, John Machin <sjmachin at lexicon.net> wrote:
> On Jul 6, 5:31 am, Neil Cerutti <horp... at yahoo.com> wrote:
>>
>> Mostly you can use the default 'excel' dialect and be quite
>> happy, since Excel is the main reason anybody still cares about
>> this unecessarily hard to parse (it requires more than one
>> character of lookahead for no reason except bad design) data
>> format.
>
> One cares about this format because people create data files of
> millions of rows (far exceeding the capacity of Excel (pre-2007)) in
> many imaginative xSV dialects, some of which are not handled by the
> Python csv module.
>
> I don't know what you mean by "requires more than one
> character of lookahead"

It's because of the silly way that quotes are quoted in quoted
fields.

"a,""b",c

But I'm not a parsing expert by any means.

-- 
Neil Cerutti



More information about the Python-list mailing list