[docs] Document codecs.encode and codecs.decode (issue 17827)

ezio.melotti at gmail.com ezio.melotti at gmail.com
Sun Aug 11 14:41:58 CEST 2013


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.

http://bugs.python.org/review/17827/


More information about the docs mailing list