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 skip.montanaro
Recipients Tiago Wright, peter.otten, skip.montanaro
Date 2015-08-04.15:29:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438702153.35.0.974172705699.issue24787@psf.upfronthosting.co.za>
In-reply-to
Content
I should have probably pointed out that the Sniffer class is the unloved stepchild of the csv module. In my experience it is rarely necessary. You either:

* Are reading CSV files which are about what Excel would produce with its default settings

or

* Know just what your format is, and can define the various parameters easily

It's pretty rare, I think, to get a delimited file in some format which is completely unknown and which thus has to be deduced.

As Peter showed, the Sniffer class is also kind of unreliable. I didn't write it, and there are precious few test cases for it. One of your datasets should probably be added to the mix and bugs fixed.
History
Date User Action Args
2015-08-04 15:29:13skip.montanarosetrecipients: + skip.montanaro, peter.otten, Tiago Wright
2015-08-04 15:29:13skip.montanarosetmessageid: <1438702153.35.0.974172705699.issue24787@psf.upfronthosting.co.za>
2015-08-04 15:29:13skip.montanarolinkissue24787 messages
2015-08-04 15:29:13skip.montanarocreate