Message from discussion Poll: Do you use csv.Sniffer?
From: nn <prueba...@latinmail.com>
Subject: Re: Poll: Do you use csv.Sniffer?
Date: Fri, 25 Sep 2009 06:45:42 -0700 (PDT)
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1253886342 1202 127.0.0.1 (25 Sep 2009 13:45:42 GMT)
NNTP-Posting-Date: Fri, 25 Sep 2009 13:45:42 +0000 (UTC)
Injection-Info: j9g2000vbp.googlegroups.com; posting-host=188.8.131.52;
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:184.108.40.206)
On Sep 24, 10:26=A0pm, s...@pobox.com wrote:
> If you are a csv module user, I have a question for you: =A0Do you use th=
> csv.Sniffer class?
> =A0 =A0 o Yes, frequently
> =A0 =A0 o Yes, on occasion
> =A0 =A0 o I tried it a few times but don't use it now
> =A0 =A0 o No, I don't need it
> =A0 =A0 o No, never heard of it
> =A0 =A0 o No (some other reason)
> If you don't use it, how do you figure out the structure of your csv file=
> =A0 =A0 o I just know
> =A0 =A0 o I stumble around in the dark trying different parameters until =
> =A0 =A0 =A0 reader starts to spit out useful data
> If csv.Sniff was to be removed from a future version of Python, how
> difficult would it be to adapt?
> =A0 =A0 o No problem
> =A0 =A0 o No problem as long as you make it available via PyPI
> =A0 =A0 o It would be a problem
> If it would be a problem for you (which would not easily be solved by add=
> it to PyPI), feel free to describe why it would be a challenge for you. =
> fact, please feel free to add any other comments you like to your respons=
> Private replies please.
> Skip Montanaro - s...@pobox.com -http://www.smontanaro.net/
> =A0 =A0 Getting old sucks, but it beats dying young
Do you use the csv.Sniffer class? No. Don't use it right now.
how do you figure out the structure of your csv files? "head -2
filename" + visual inspection + guesswork
If csv.Sniff was to be removed from a future version of Python, how
difficult would it be to adapt? No problem.
It would still be nice if the code was available somewhere on the net.