This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaywalker
Recipients jaywalker
Date 2009-01-05.17:03:23
SpamBayes Score 0.00023345226
Marked as misclassified No
Message-id <1231175004.95.0.780150738153.issue4847@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-01-05 17:03:24jaywalkersetrecipients: + jaywalker
2009-01-05 17:03:24jaywalkersetmessageid: <1231175004.95.0.780150738153.issue4847@psf.upfronthosting.co.za>
2009-01-05 17:03:24jaywalkerlinkissue4847 messages
2009-01-05 17:03:23jaywalkercreate