mirror of
https://github.com/python/cpython.git
synced 2025-08-12 12:58:50 +00:00
gh-101100: Fix some broken sphinx references (#107095)
This commit is contained in:
parent
dcd7acb04a
commit
f5147c0cfb
12 changed files with 27 additions and 34 deletions
|
@ -424,8 +424,8 @@ lowercase letters 'ss'.
|
|||
|
||||
A second tool is the :mod:`unicodedata` module's
|
||||
:func:`~unicodedata.normalize` function that converts strings to one
|
||||
of several normal forms, where letters followed by a combining
|
||||
character are replaced with single characters. :func:`normalize` can
|
||||
of several normal forms, where letters followed by a combining character are
|
||||
replaced with single characters. :func:`~unicodedata.normalize` can
|
||||
be used to perform string comparisons that won't falsely report
|
||||
inequality if two strings use combining characters differently:
|
||||
|
||||
|
@ -474,8 +474,8 @@ The Unicode Standard also specifies how to do caseless comparisons::
|
|||
|
||||
print(compare_caseless(single_char, multiple_chars))
|
||||
|
||||
This will print ``True``. (Why is :func:`NFD` invoked twice? Because
|
||||
there are a few characters that make :meth:`casefold` return a
|
||||
This will print ``True``. (Why is :func:`!NFD` invoked twice? Because
|
||||
there are a few characters that make :meth:`~str.casefold` return a
|
||||
non-normalized string, so the result needs to be normalized again. See
|
||||
section 3.13 of the Unicode Standard for a discussion and an example.)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue