[docs] [issue18572] Remove redundant note about surrogates in string escape doc

Steven D'Aprano report at bugs.python.org
Sat Jul 27 18:12:13 CEST 2013


New submission from Steven D'Aprano:

The documentation for string escapes suggests that \uxxxx escapes can be used to generate characters in the Supplementary Multilingual Planes by using surrogate pairs:

"Individual code units which form parts of a surrogate pair can be encoded using this escape sequence."

http://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals

E.g. in Python 3.2:

py> '\uD80C\uDC80' == '\U00013080'
True

but that is no longer the case in Python 3.3. I suggest the documentation should just remove that note.

----------
assignee: docs at python
components: Documentation
messages: 193787
nosy: docs at python, stevenjd
priority: normal
severity: normal
status: open
title: Remove redundant note about surrogates in string escape doc
versions: Python 3.3

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


More information about the docs mailing list