Message from discussion
Poll: Do you use csv.Sniffer?
Path: g2news2.google.com!postnews.google.com!j9g2000vbp.googlegroups.com!not-for-mail
From: nn <prueba...@latinmail.com>
Newsgroups: comp.lang.python
Subject: Re: Poll: Do you use csv.Sniffer?
Date: Fri, 25 Sep 2009 06:45:42 -0700 (PDT)
Organization: http://groups.google.com
Lines: 51
Message-ID: <b2c2d4ba-0ec8-4bb7-8de9-4b85841af1ad@j9g2000vbp.googlegroups.com>
References: <mailman.445.1253845575.2807.python-list@python.org>
NNTP-Posting-Host: 67.98.187.69
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1253886342 1202 127.0.0.1 (25 Sep 2009 13:45:42 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 25 Sep 2009 13:45:42 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: j9g2000vbp.googlegroups.com; posting-host=67.98.187.69;
posting-account=2aOVSgkAAAAobcghlhtXDlbggz5lM5kz
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3,gzip(gfe),gzip(gfe)
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=
e
> 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=
s?
>
> =A0 =A0 o I just know
> =A0 =A0 o I stumble around in the dark trying different parameters until =
the csv
> =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=
ing
> it to PyPI), feel free to describe why it would be a challenge for you. =
=A0In
> fact, please feel free to add any other comments you like to your respons=
e.
>
> Private replies please.
>
> Thanks,
>
> --
> 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.