csv module strangeness.
Fredrik Lundh
fredrik at pythonware.com
Thu Aug 31 04:59:17 EDT 2006
tobiah wrote:
>> you may be misreading the docs; the Dialect has no values at all, and
>> must be subclassed (and the subclass must provide settings).
>
> The docs clearly state what the defaults are, but they are not
> in the code. It seems so clumsy to have to specify every one
> of these, just to change the delimiter from comma to tab.
>
> http://docs.python.org/lib/csv-fmt-params.html :
The "it defaults to" clauses should probably be seen in the context of
the two "the programmer can" sentences in the first paragraph on that
page; the default is what's used if you don't do that.
I agree that the first paragraph could need some work. Any volunteers?
</F>
More information about the Python-list
mailing list