This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Incorrect example Unicode string in docs footnote
Type: Stage: resolved
Components: Documentation, Unicode Versions: Python 3.6, Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Rosuav, docs@python, ezio.melotti, python-dev, serhiy.storchaka, vstinner
Priority: normal Keywords: patch

Created on 2015-07-11 10:46 by Rosuav, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
cedilla_docs.patch Rosuav, 2015-07-11 10:46 Trivial docs patch to make this correct review
Messages (4)
msg246599 - (view) Author: Chris Angelico (Rosuav) * Date: 2015-07-11 10:46
https://docs.python.org/3/reference/expressions.html#id18

The string "\u0327\u0043" does not normalize to the same string as "\u00C7", as combining characters are supposed to _follow_ the base character. (Some consoles may happen to display them the same way, but prepend another letter to the string and it's clear that the combining cedilla is attached to that and not to the C.)

Switching the two escape sequences makes the example work. Patch attached.
msg246600 - (view) Author: Chris Angelico (Rosuav) * Date: 2015-07-11 10:48
Interestingly, the 2.7 docs have this correct already.

https://docs.python.org/2.7/reference/expressions.html#id23
msg246601 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-07-11 11:26
LGTM.

The 2.x docs were fixed in c9bf6e70308e, but this change was lost during merging to 3.x in 3d866579117d.
msg246617 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-07-11 23:33
New changeset 1cae77f873af by Benjamin Peterson in branch '3.4':
fix normalization example (closes #24610)
https://hg.python.org/cpython/rev/1cae77f873af

New changeset 0127b0cad5ec by Benjamin Peterson in branch '3.5':
merge 3.4 (#24610)
https://hg.python.org/cpython/rev/0127b0cad5ec

New changeset 02b81a82a57d by Benjamin Peterson in branch 'default':
merge 3.5 (#24610)
https://hg.python.org/cpython/rev/02b81a82a57d
History
Date User Action Args
2022-04-11 14:58:18adminsetgithub: 68798
2015-07-11 23:33:58python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg246617

resolution: fixed
stage: commit review -> resolved
2015-07-11 11:26:04serhiy.storchakasetversions: + Python 3.4, Python 3.5
nosy: + vstinner, serhiy.storchaka, ezio.melotti

messages: + msg246601

components: + Unicode
stage: commit review
2015-07-11 10:48:58Rosuavsetmessages: + msg246600
2015-07-11 10:46:49Rosuavcreate