This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MiK
Recipients MiK, docs@python, jbmilam, r.david.murray, skip.montanaro
Date 2015-05-28.21:24:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432848291.57.0.805155440042.issue24147@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I have just read the documentation once again.

The problem is that it specifies that the default value for Dialect.doublequote is True :
<quote>Controls how instances of quotechar appearing inside a field should be themselves be quoted. When True, the character is doubled. When False, the escapechar is used as a prefix to the quotechar. It defaults to True.</quote>

So it is easy to understand that the class csv.Dialect implements this default value. Although the class Dialect default in the csv.reader calling is "Excel" and thus, implicitly, it is csv.excel the default class whose attributes are described in the above paragraph. 

It would be great in this case to describe the attributes of the base class Dialect or specify that all attributes must be settled when we subclass this.

Optionally it would be good that the code of CSV.Dialect be changed for really Boolean values. But the clarification of documentation is more important I think.
History
Date User Action Args
2015-05-28 21:24:51MiKsetrecipients: + MiK, skip.montanaro, r.david.murray, docs@python, jbmilam
2015-05-28 21:24:51MiKsetmessageid: <1432848291.57.0.805155440042.issue24147@psf.upfronthosting.co.za>
2015-05-28 21:24:51MiKlinkissue24147 messages
2015-05-28 21:24:51MiKcreate