[issue20413] Errors in documentation of standard codec error handlers
RalfM
report at bugs.python.org
Mon Jan 27 21:41:06 CET 2014
New submission from RalfM:
The standard library documentation lists the standard codec error handlers in three places:
(a) 2. Build-in Functions, section open()
(b) 7.2 codecs - Codec registry and base classes
(c) 7.2.1 Codec Base Classes
As far as I can judge these lists, (c) looks ok, but (a) and (b) contain two errors:
1. 'surrogatepass' is not mentioned.
2. 'surrogateescape' is described as:
'on decoding, replace with code points in the Unicode Private
Use Area ranging from U+DC80 to U+DCFF. These private code points
will ...'
This is incorrect in so far as U+DC80 to U+DCFF are not private
code points, but (low-)surrogate code points. This is correctly
explained in (c) and in PEP383 (and, of course, in the Unicode
standard, chapter 16).
I suggest to correct (a) and (b) by
* adding 'surrogatepass' with the description given in (c),
* changing the description of 'surrogateescape' to something like:
'on decoding, replace with surrogate code points ranging from
U+DC80 to U+DCFF. These surrogate code points will ...'.
These errors are present in the documentation (more precisely, the .chm files) of at least
- Python 3.3.3
- Python 3.3.4rc1
- Python 3.4.0b3.
----------
assignee: docs at python
components: Documentation
messages: 209477
nosy: RalfM, docs at python
priority: normal
severity: normal
status: open
title: Errors in documentation of standard codec error handlers
type: enhancement
versions: Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20413>
_______________________________________
More information about the Python-bugs-list
mailing list