[Python-checkins] r58299 - python/trunk/Doc/reference/expressions.rst

mark.summerfield python-checkins at python.org
Wed Oct 3 10:53:21 CEST 2007


Author: mark.summerfield
Date: Wed Oct  3 10:53:21 2007
New Revision: 58299

Modified:
   python/trunk/Doc/reference/expressions.rst
Log:
Added note in footnote about string comparisons about
unicodedata.normalize().



Modified: python/trunk/Doc/reference/expressions.rst
==============================================================================
--- python/trunk/Doc/reference/expressions.rst	(original)
+++ python/trunk/Doc/reference/expressions.rst	Wed Oct  3 10:53:21 2007
@@ -1330,9 +1330,10 @@
 
 .. [#] While comparisons between unicode strings make sense at the byte
    level, they may be counter-intuitive to users. For example, the
-   strings ``u"\u00C7"`` and ``u"\u0327\u0043"`` compare differently,
+   strings ``u"\u00C7"`` and ``u"\u0043\u0327"`` compare differently,
    even though they both represent the same unicode character (LATIN
-   CAPTITAL LETTER C WITH CEDILLA).
+   CAPTITAL LETTER C WITH CEDILLA). To compare strings in a human
+   recognizable way, compare using :func:`unicodedata.normalize`.
 
 .. [#] The implementation computes this efficiently, without constructing lists or
    sorting.


More information about the Python-checkins mailing list