Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(37346)

#17827: Document codecs.encode and codecs.decode

Can't Edit
Can't Publish+Mail
Start Review
Created:
6 years, 3 months ago by ncoghlan
Modified:
5 years, 11 months ago
Reviewers:
ezio.melotti
CC:
barry, Nick Coghlan, ezio.melotti, flox, docs_python.org, tshepang, devnull_psf.upfronthosting.co.za, grant.p.edney_gmail.com
Visibility:
Public.

Patch Set 1 #

Total comments: 4

Patch Set 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
Doc/library/codecs.rst View 1 1 chunk +19 lines, -0 lines 0 comments Download
Misc/NEWS View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 1
ezio.melotti
6 years, 2 months ago #1
http://bugs.python.org/review/17827/diff/8606/Doc/library/codecs.rst
File Doc/library/codecs.rst (right):

http://bugs.python.org/review/17827/diff/8606/Doc/library/codecs.rst#newcode27
Doc/library/codecs.rst:27: Encodes obj using the codec registered for encoding.
Errors may be given
*encoding*

http://bugs.python.org/review/17827/diff/8606/Doc/library/codecs.rst#newcode28
Doc/library/codecs.rst:28: to set a different error handling scheme. Default is
``strict`` meaning that
``'strict'``

http://bugs.python.org/review/17827/diff/8606/Doc/library/codecs.rst#newcode30
Doc/library/codecs.rst:30: ``replace`` and ``xmlcharrefreplace`` as well as any
other name registered with
These lines are too long.

http://bugs.python.org/review/17827/diff/8606/Doc/library/codecs.rst#newcode31
Doc/library/codecs.rst:31: ``codecs.register_error`` that can handle
:exc:`ValueError`.
I think there's already a list of valid error handlers somewhere, so you could
just link to that instead of repeating them here.
Sign in to reply to this message.

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+