summaryrefslogtreecommitdiffstats
path: root/Doc/library/string.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/string.rst')
-rw-r--r--Doc/library/string.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 5867a5a..29bf160 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -548,13 +548,9 @@ rule:
delimiter), and it should appear last in the regular expression.
-String functions
+Helper functions
----------------
-The following functions are available to operate on string objects.
-They are not available as string methods.
-
-
.. function:: capwords(s)
Split the argument into words using :func:`split`, capitalize each word using
@@ -568,3 +564,6 @@ They are not available as string methods.
Return a translation table suitable for passing to :meth:`bytes.translate`,
that will map each character in *from* into the character at the same
position in *to*; *from* and *to* must have the same length.
+
+ .. deprecated:: 3.1
+ Use the :meth:`bytes.maketrans` static method instead.