read Zipfile

2009-11-02 Thread sityee kong
Hi all, I'm writing a program to manipulate data in 3 different kind of format, there are GZIP, cvs/txt, or ZIP file. Here is part of my program to open these 3 kind formats of file, if (option==1): file=gzip.GzipFile(sys.argv[1],"r") elif (option==2): file=open(sys.argv[1],"r")

Re: read Zipfile

2009-11-02 Thread sityee kong
Hi all, yes, im using python 2.4. I would like to know how does python 2.4 work for my case w/o the new added feature in 2.6? Do you guys know? thanks! On Mon, Nov 2, 2009 at 5:02 PM, Tim Chase wrote: > I would like to open the csv file with folowwing command, >>> >>> file=archive.open("CHAVI_

Memory error due to big input file

2009-07-13 Thread sityee kong
Hi All, I have a similar problem that many new python users might encounter. I would really appreciate if you could help me fix the error. I have a big text file with size more than 2GB. It turned out memory error when reading in this file. Here is my python script, the error occurred at line -- s