Message79165
The following code from the documentation fails:
#################
import csv
reader = csv.reader(open("eggs.csv", "rb"))
for row in reader:
print(row)
#####################
The output is:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 3, in <module>
_csv.Error: iterator should return strings, not bytes (did you open the
file in text mode?)
It works as expected in python 2.6 |
|
Date |
User |
Action |
Args |
2009-01-05 17:03:24 | jaywalker | set | recipients:
+ jaywalker |
2009-01-05 17:03:24 | jaywalker | set | messageid: <1231175004.95.0.780150738153.issue4847@psf.upfronthosting.co.za> |
2009-01-05 17:03:24 | jaywalker | link | issue4847 messages |
2009-01-05 17:03:23 | jaywalker | create | |
|