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 jplaverdure
Recipients jplaverdure, skip.montanaro, tds333
Date 2008-03-27.20:39:01
SpamBayes Score 0.05472212
Marked as misclassified No
Message-id <1206650343.02.0.115382198287.issue2078@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Skip,

You're right, it does seem that using f.read(1024) to feed the sniffer
works OK in my case and allows me to instantiate the DictReader
correctly...  Why that is I'm not sure though...

I was submitting the first line as I thought is was the right sample to
provide the sniffer for it to sniff the correct dialect regardless of
the file format and file content.

And yes, 'except csv.Error' is certainly a better way to trap my desired
exception... I guess I'm a bit of a n00b using Python.

Thanks for the help. 
Python really has a great community !
History
Date User Action Args
2008-03-27 20:39:03jplaverduresetspambayes_score: 0.0547221 -> 0.05472212
recipients: + jplaverdure, skip.montanaro, tds333
2008-03-27 20:39:03jplaverduresetspambayes_score: 0.0547221 -> 0.0547221
messageid: <1206650343.02.0.115382198287.issue2078@psf.upfronthosting.co.za>
2008-03-27 20:39:02jplaverdurelinkissue2078 messages
2008-03-27 20:39:01jplaverdurecreate