Skip to content
New issue

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? Sign in to your account

UnicodeWriter: "utf-8" hardcoded instead of self.encoding #42958

Closed
rodelrod mannequin opened this issue Mar 1, 2006 · 2 comments
Closed

UnicodeWriter: "utf-8" hardcoded instead of self.encoding #42958

rodelrod mannequin opened this issue Mar 1, 2006 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@rodelrod
Copy link
Mannequin

rodelrod mannequin commented Mar 1, 2006

BPO 1440831
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2006-03-07.13:47:46.000>
created_at = <Date 2006-03-01.09:04:35.000>
labels = ['docs']
title = 'UnicodeWriter: "utf-8" hardcoded instead of self.encoding'
updated_at = <Date 2006-03-07.13:47:46.000>
user = 'https://bugs.python.org/rodelrod'

bugs.python.org fields:

activity = <Date 2006-03-07.13:47:46.000>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2006-03-01.09:04:35.000>
creator = 'rodelrod'
dependencies = []
files = []
hgrepos = []
issue_num = 1440831
keywords = []
message_count = 2.0
messages = ['27635', '27636']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'rodelrod']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1440831'
versions = []

@rodelrod
Copy link
Mannequin Author

rodelrod mannequin commented Mar 1, 2006

In the Python Library Reference, 12.20.5 Examples.
In the UnicodeReader/UnicodeWriter example.

class UnicodeWriter:
...
|    def writerow(self, row):
|    |    self.writer.writerow([s.encode("utf-8") for s
in row])

should be:

class UnicodeWriter:
...
|    def writerow(self, row):
|    |    self.writer.writerow([s.encode(self.encoding)
for s in row])

@rodelrod rodelrod mannequin closed this as completed Mar 1, 2006
@rodelrod rodelrod mannequin assigned birkenfeld Mar 1, 2006
@rodelrod rodelrod mannequin added the docs Documentation in the Doc dir label Mar 1, 2006
@rodelrod rodelrod mannequin closed this as completed Mar 1, 2006
@rodelrod rodelrod mannequin assigned birkenfeld Mar 1, 2006
@rodelrod rodelrod mannequin added the docs Documentation in the Doc dir label Mar 1, 2006
@birkenfeld
Copy link
Member

Logged In: YES
user_id=849994

Thank you, fixed in rev. 42887.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant