We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
assignee = None
closed_at = <Date 2020-06-05.20:58:07.999>
created_at = <Date 2020-06-05.17:00:03.928>
labels = ['type-bug', 'library', '3.10']
title = 'Clarify error message in csv module'
updated_at = <Date 2020-06-05.20:58:07.998>
user = 'https://github.com/cool-RR'
activity = <Date 2020-06-05.20:58:07.998>
actor = 'nanjekyejoannah'
assignee = 'none'
closed = True
closed_date = <Date 2020-06-05.20:58:07.999>
closer = 'nanjekyejoannah'
components = ['Library (Lib)']
creation = <Date 2020-06-05.17:00:03.928>
creator = 'cool-RR'
dependencies = 
files = 
hgrepos = 
issue_num = 40876
keywords = ['patch']
message_count = 3.0
messages = ['370769', '370785', '370786']
nosy_count = 2.0
nosy_names = ['cool-RR', 'nanjekyejoannah']
pr_nums = ['20653']
priority = 'normal'
resolution = None
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue40876'
versions = ['Python 3.10']
The text was updated successfully, but these errors were encountered:
I was working with the csv module, and I vaguely remembered that you should open files in binary mode. So I did.
Then I saw this error message:
_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
I read the end and thought "I didn't open it in text mode, what does it want from me?!" It took a careful reading to figure out that I was *supposed to* open it in text mode.
I'm going to open a PR to slightly change the text to:
_csv.Error: iterator should return strings, not bytes (the file should be opened in text mode)
Sorry, something went wrong.
New changeset 235f918 by Ram Rachum in branch 'master':
bpo-40876: Clarify error message in the csv module (GH-20653)
PR merged. We can close this. Thanks Ram.
No branches or pull requests