[issue24147] doublequote are not well recognized with Dialect class

2015-05-17 Thread Mik
Mik added the comment: Ok Thanks. But perhaps the documentation of csv.Dialect would be updated with the default parameters. If all attribute may be specified this would be indicated in the doc. -- ___ Python tracker

[issue24147] doublequote are not well recognized with Dialect class

2015-05-17 Thread Skip Montanaro
Skip Montanaro added the comment: In your Mon class, you've left the doublequote parameter unset (it defaults to None). It completely overrides the default dialect. When no Dialect class is given, the default is csv.excel. Note that doublequote is set to True in csv.excel. In your second examp

[issue24147] doublequote are not well recognized with Dialect class

2015-05-09 Thread Mik
Mik added the comment: Hi, This is the file used for my test. Thank you, regard, Mik -- Added file: http://bugs.python.org/file39328/sans_headers.csv ___ Python tracker ___ _

[issue24147] doublequote are not well recognized with Dialect class

2015-05-09 Thread Skip Montanaro
Skip Montanaro added the comment: Sorry, failed to override my phone's spell correction. "cab" should be "csv". -- ___ Python tracker ___

[issue24147] doublequote are not well recognized with Dialect class

2015-05-09 Thread Skip Montanaro
Skip Montanaro added the comment: Can you attach your cab file so we don't need to reconstruct it (and possibly make a mistake) by reading your program's output? -- nosy: +skip.montanaro ___ Python tracker ___

[issue24147] doublequote are not well recognized with Dialect class

2015-05-08 Thread Mik
New submission from Mik: Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import csv >>> class Mon(csv.Dialect): ... delimiter = ',' ... quotechar = '"' ... quoting = 0 ... lineterminato