summaryrefslogtreecommitdiff
path: root/Doc/library/locale.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/locale.rst')
-rw-r--r--Doc/library/locale.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/library/locale.rst b/Doc/library/locale.rst
index 381107e4c1..da3a8437bb 100644
--- a/Doc/library/locale.rst
+++ b/Doc/library/locale.rst
@@ -225,12 +225,11 @@ The :mod:`locale` module defines the following exception and functions:
.. function:: strxfrm(string)
- .. index:: builtin: cmp
-
- Transforms a string to one that can be used for the built-in function
- :func:`cmp`, and still returns locale-aware results. This function can be used
- when the same string is compared repeatedly, e.g. when collating a sequence of
- strings.
+ Transforms a string to one that can be used in locale-aware
+ comparisons. For example, ``strxfrm(s1) < strxfrm(s2)`` is
+ equivalent to ``strcoll(s1, s2) < 0``. This function can be used
+ when the same string is compared repeatedly, e.g. when collating a
+ sequence of strings.
.. function:: format(format, val[, grouping[, monetary]])