quick and smart way for parsing a CSV file?
Hank
soundwave56 at yahoo.ca
Thu Sep 4 21:34:48 EDT 2003
I'm using ActivePython2.2 which has the win32 extensions included.
Don't think they have a ActivePython2.3 out yet.
Also I was trying out PAGE which needed 2.2. Don't have the resources
to recompile for 2.3.
Thanks for the help!
"Michael Peuser" <mpeuser at web.de> wrote in message news:<bj85d3$iav$03$1 at news.t-online.com>...
> <achrist at easystreet.com> schrieb im Newsbeitrag
> news:3F5656CA.519ABADF at easystreet.com...
> > Hank wrote:
> > >
> > > Hi,
> > >
> > > I have a CSV file from excel that looks like this (simplified):
> > >
> .........
> >
> >
> > import csv
> >
> > dicts = []
> >
> > inputFile = open("SomeDurnFileName.csv", "rb")
> > parser = csv.reader(inputFile)
>
> If you do not use Python 2.3 for some reason or other there is a third party
> CSV that is fast and workes fine with Python 2.2 (but uses a different
> interface of course)
> http://www.object-craft.com.au/projects/csv/
>
> Kindly
> Michael P
More information about the Python-list
mailing list