Re: Python 3.1 csv with gzip

2009-09-11 Thread Stefan Behnel
dryfish wrote: > Python 3.1.1 doesn't seem to be happy with the use of gzip.open with > csv.reader. > > Using this: > > import gzip, csv, sys > > data = csv.reader(gzip.open(sys.argv[1])) > for row in data: > print(row) > > Will give this: > > Traceback (most recent call last): > File ".

Python 3.1 csv with gzip

2009-09-11 Thread dryfish
Python 3.1.1 doesn't seem to be happy with the use of gzip.open with csv.reader. Using this: import gzip, csv, sys data = csv.reader(gzip.open(sys.argv[1])) for row in data: print(row) Will give this: Traceback (most recent call last): File "./a.py", line 6, in for row in data: _csv