mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +00:00
#17841: merge with 3.3.
This commit is contained in:
commit
9b149b94ff
1 changed files with 33 additions and 33 deletions
|
@ -1188,44 +1188,44 @@ particular, the following variants typically exist:
|
||||||
|
|
||||||
The following codecs provide bytes-to-bytes mappings.
|
The following codecs provide bytes-to-bytes mappings.
|
||||||
|
|
||||||
.. tabularcolumns:: |l|p{0.3\linewidth}|p{0.3\linewidth}|
|
.. tabularcolumns:: |l|L|
|
||||||
|
|
||||||
+--------------------+---------------------------+---------------------------+
|
+--------------------+---------------------------+
|
||||||
| Codec | Aliases | Purpose |
|
| Codec | Purpose |
|
||||||
+====================+===========================+===========================+
|
+====================+===========================+
|
||||||
| base64_codec | base64, base-64 | Convert operand to MIME |
|
| base64_codec | Convert operand to MIME |
|
||||||
| | | base64 (the result always |
|
| | base64 (the result always |
|
||||||
| | | includes a trailing |
|
| | includes a trailing |
|
||||||
| | | ``'\n'``) |
|
| | ``'\n'``) |
|
||||||
+--------------------+---------------------------+---------------------------+
|
+--------------------+---------------------------+
|
||||||
| bz2_codec | bz2 | Compress the operand |
|
| bz2_codec | Compress the operand |
|
||||||
| | | using bz2 |
|
| | using bz2 |
|
||||||
+--------------------+---------------------------+---------------------------+
|
+--------------------+---------------------------+
|
||||||
| hex_codec | hex | Convert operand to |
|
| hex_codec | Convert operand to |
|
||||||
| | | hexadecimal |
|
| | hexadecimal |
|
||||||
| | | representation, with two |
|
| | representation, with two |
|
||||||
| | | digits per byte |
|
| | digits per byte |
|
||||||
+--------------------+---------------------------+---------------------------+
|
+--------------------+---------------------------+
|
||||||
| quopri_codec | quopri, quoted-printable, | Convert operand to MIME |
|
| quopri_codec | Convert operand to MIME |
|
||||||
| | quotedprintable | quoted printable |
|
| | quoted printable |
|
||||||
+--------------------+---------------------------+---------------------------+
|
+--------------------+---------------------------+
|
||||||
| uu_codec | uu | Convert the operand using |
|
| uu_codec | Convert the operand using |
|
||||||
| | | uuencode |
|
| | uuencode |
|
||||||
+--------------------+---------------------------+---------------------------+
|
+--------------------+---------------------------+
|
||||||
| zlib_codec | zip, zlib | Compress the operand |
|
| zlib_codec | Compress the operand |
|
||||||
| | | using gzip |
|
| | using gzip |
|
||||||
+--------------------+---------------------------+---------------------------+
|
+--------------------+---------------------------+
|
||||||
|
|
||||||
The following codecs provide string-to-string mappings.
|
The following codecs provide string-to-string mappings.
|
||||||
|
|
||||||
.. tabularcolumns:: |l|p{0.3\linewidth}|p{0.3\linewidth}|
|
.. tabularcolumns:: |l|L|
|
||||||
|
|
||||||
+--------------------+---------------------------+---------------------------+
|
+--------------------+---------------------------+
|
||||||
| Codec | Aliases | Purpose |
|
| Codec | Purpose |
|
||||||
+====================+===========================+===========================+
|
+====================+===========================+
|
||||||
| rot_13 | rot13 | Returns the Caesar-cypher |
|
| rot_13 | Returns the Caesar-cypher |
|
||||||
| | | encryption of the operand |
|
| | encryption of the operand |
|
||||||
+--------------------+---------------------------+---------------------------+
|
+--------------------+---------------------------+
|
||||||
|
|
||||||
.. versionadded:: 3.2
|
.. versionadded:: 3.2
|
||||||
bytes-to-bytes and string-to-string codecs.
|
bytes-to-bytes and string-to-string codecs.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue