summaryrefslogtreecommitdiff
path: root/Doc/library/codecs.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-05-22 15:33:09 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2013-05-22 15:33:09 +0300
commit3bc5c196a45de8edeaae19a0652d550eda197c3e (patch)
tree925e797ec3047bbd2693caefbf1d1a2a42c1371f /Doc/library/codecs.rst
parentc7e6bac5bed168fd8599f25a7080353aa4896499 (diff)
downloadcpython-3bc5c196a45de8edeaae19a0652d550eda197c3e.tar.gz
Issue #17844: Add links to encoders and decoders for bytes-to-bytes codecs.
Diffstat (limited to 'Doc/library/codecs.rst')
-rw-r--r--Doc/library/codecs.rst54
1 files changed, 27 insertions, 27 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index 27a02cdacf..0590d0e28c 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -1188,33 +1188,33 @@ particular, the following variants typically exist:
The following codecs provide bytes-to-bytes mappings.
-.. tabularcolumns:: |l|L|
-
-+--------------------+---------------------------+
-| Codec | Purpose |
-+====================+===========================+
-| base64_codec | Convert operand to MIME |
-| | base64 (the result always |
-| | includes a trailing |
-| | ``'\n'``) |
-+--------------------+---------------------------+
-| bz2_codec | Compress the operand |
-| | using bz2 |
-+--------------------+---------------------------+
-| hex_codec | Convert operand to |
-| | hexadecimal |
-| | representation, with two |
-| | digits per byte |
-+--------------------+---------------------------+
-| quopri_codec | Convert operand to MIME |
-| | quoted printable |
-+--------------------+---------------------------+
-| uu_codec | Convert the operand using |
-| | uuencode |
-+--------------------+---------------------------+
-| zlib_codec | Compress the operand |
-| | using gzip |
-+--------------------+---------------------------+
+.. tabularcolumns:: |l|L|L|
+
++--------------------+---------------------------+------------------------------+
+| Codec | Purpose | Encoder/decoder |
++====================+===========================+==============================+
+| base64_codec | Convert operand to MIME | :meth:`base64.b64encode`, |
+| | base64 (the result always | :meth:`base64.b64decode` |
+| | includes a trailing | |
+| | ``'\n'``) | |
++--------------------+---------------------------+------------------------------+
+| bz2_codec | Compress the operand | :meth:`bz2.compress`, |
+| | using bz2 | :meth:`bz2.decompress` |
++--------------------+---------------------------+------------------------------+
+| hex_codec | Convert operand to | :meth:`base64.b16encode`, |
+| | hexadecimal | :meth:`base64.b16decode` |
+| | representation, with two | |
+| | digits per byte | |
++--------------------+---------------------------+------------------------------+
+| quopri_codec | Convert operand to MIME | :meth:`quopri.encodestring`, |
+| | quoted printable | :meth:`quopri.decodestring` |
++--------------------+---------------------------+------------------------------+
+| uu_codec | Convert the operand using | :meth:`uu.encode`, |
+| | uuencode | :meth:`uu.decode` |
++--------------------+---------------------------+------------------------------+
+| zlib_codec | Compress the operand | :meth:`zlib.compress`, |
+| | using gzip | :meth:`zlib.decompress` |
++--------------------+---------------------------+------------------------------+
The following codecs provide string-to-string mappings.