[docs] [issue21667] Clarify status of O(1) indexing semantics of str objects

Nick Coghlan report at bugs.python.org
Thu Jun 5 13:17:54 CEST 2014


Nick Coghlan added the comment:

Saying that ord() and chr() switch between characters and code points is just plain wrong, since characters may be represented as multiple code points.

We may also want to explicitly note that the Unicode normalisation is implementation dependendent, and that CPython doesn't normalise implicitly except where specifically noted (i.e. during lexical analysis).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21667>
_______________________________________


More information about the docs mailing list