summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-05-10 19:59:22 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-05-10 19:59:22 (GMT)
commit638b869004d30dcea51fd629ff6fa180869e7641 (patch)
tree9efc1a49475cdae507433bb80ec6735d80845bc4
parent40f09c07a275627cf48f8516630d84835703b200 (diff)
downloadcpython-638b869004d30dcea51fd629ff6fa180869e7641.zip
cpython-638b869004d30dcea51fd629ff6fa180869e7641.tar.gz
cpython-638b869004d30dcea51fd629ff6fa180869e7641.tar.bz2
Add a link on maketrans().
-rw-r--r--Doc/library/stdtypes.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 20354fa..1f44016 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1220,9 +1220,9 @@ string functions based on regular expressions.
mapped through the given translation table, which must be a string of length
256.
- You can use the :func:`maketrans` helper function in the :mod:`string` module to
- create a translation table. For string objects, set the *table* argument to
- ``None`` for translations that only delete characters:
+ You can use the :func:`~string.maketrans` helper function in the :mod:`string`
+ module to create a translation table. For string objects, set the *table*
+ argument to ``None`` for translations that only delete characters:
>>> 'read this short text'.translate(None, 'aeiou')
'rd ths shrt txt'