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 peter.otten
Recipients Tiago Wright, peter.otten, skip.montanaro
Date 2015-08-04.07:20:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438672802.49.0.763512453128.issue24787@psf.upfronthosting.co.za>
In-reply-to
Content
The sniffer actually changes its "mind" in the fourth line:

Python 3.4.0 (default, Jun 19 2015, 14:20:21) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import csv
>>> csv.Sniffer().sniff("""\
... Invoice File,Credit Memo,Amount Claimed,Description,Invoice,Message,
... Sscanner ac15072911220.pdf,CM_15203,28714.32,MX Jan Feb,948198,,
... Sscanner ac15072911221.pdf,CM 16148,15600,MX Unkwon,948199,,
... """).delimiter
','
>>> csv.Sniffer().sniff("""\
... Invoice File,Credit Memo,Amount Claimed,Description,Invoice,Message,
... Sscanner ac15072911220.pdf,CM_15203,28714.32,MX Jan Feb,948198,,
... Sscanner ac15072911221.pdf,CM 16148,15600,MX Unkwon,948199,,
... Sscanner ac15072911230.pdf,CM 16148,33488,MX Cavalier,948200,Photos don't match the invoice
... """).delimiter
'M'

That line has only 5 commas while all others have 6. Unfortunately all lines contain exactly two "M"...
History
Date User Action Args
2015-08-04 07:20:02peter.ottensetrecipients: + peter.otten, skip.montanaro, Tiago Wright
2015-08-04 07:20:02peter.ottensetmessageid: <1438672802.49.0.763512453128.issue24787@psf.upfronthosting.co.za>
2015-08-04 07:20:02peter.ottenlinkissue24787 messages
2015-08-04 07:20:02peter.ottencreate