Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 549681c

Browse files
Issue #17844: Add links to encoders and decoders for bytes-to-bytes codecs.
2 parents 80e1c43 + 9e62d35 commit 549681c

2 files changed

Lines changed: 29 additions & 28 deletions

File tree

Doc/library/codecs.rst

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,33 +1188,33 @@ particular, the following variants typically exist:
11881188

11891189
The following codecs provide bytes-to-bytes mappings.
11901190

1191-
.. tabularcolumns:: |l|L|
1192-
1193-
+--------------------+---------------------------+
1194-
| Codec | Purpose |
1195-
+====================+===========================+
1196-
| base64_codec | Convert operand to MIME |
1197-
| | base64 (the result always |
1198-
| | includes a trailing |
1199-
| | ``'\n'``) |
1200-
+--------------------+---------------------------+
1201-
| bz2_codec | Compress the operand |
1202-
| | using bz2 |
1203-
+--------------------+---------------------------+
1204-
| hex_codec | Convert operand to |
1205-
| | hexadecimal |
1206-
| | representation, with two |
1207-
| | digits per byte |
1208-
+--------------------+---------------------------+
1209-
| quopri_codec | Convert operand to MIME |
1210-
| | quoted printable |
1211-
+--------------------+---------------------------+
1212-
| uu_codec | Convert the operand using |
1213-
| | uuencode |
1214-
+--------------------+---------------------------+
1215-
| zlib_codec | Compress the operand |
1216-
| | using gzip |
1217-
+--------------------+---------------------------+
1191+
.. tabularcolumns:: |l|L|L|
1192+
1193+
+--------------------+---------------------------+------------------------------+
1194+
| Codec | Purpose | Encoder/decoder |
1195+
+====================+===========================+==============================+
1196+
| base64_codec | Convert operand to MIME | :meth:`base64.b64encode`, |
1197+
| | base64 (the result always | :meth:`base64.b64decode` |
1198+
| | includes a trailing | |
1199+
| | ``'\n'``) | |
1200+
+--------------------+---------------------------+------------------------------+
1201+
| bz2_codec | Compress the operand | :meth:`bz2.compress`, |
1202+
| | using bz2 | :meth:`bz2.decompress` |
1203+
+--------------------+---------------------------+------------------------------+
1204+
| hex_codec | Convert operand to | :meth:`base64.b16encode`, |
1205+
| | hexadecimal | :meth:`base64.b16decode` |
1206+
| | representation, with two | |
1207+
| | digits per byte | |
1208+
+--------------------+---------------------------+------------------------------+
1209+
| quopri_codec | Convert operand to MIME | :meth:`quopri.encodestring`, |
1210+
| | quoted printable | :meth:`quopri.decodestring` |
1211+
+--------------------+---------------------------+------------------------------+
1212+
| uu_codec | Convert the operand using | :meth:`uu.encode`, |
1213+
| | uuencode | :meth:`uu.decode` |
1214+
+--------------------+---------------------------+------------------------------+
1215+
| zlib_codec | Compress the operand | :meth:`zlib.compress`, |
1216+
| | using gzip | :meth:`zlib.decompress` |
1217+
+--------------------+---------------------------+------------------------------+
12181218

12191219
The following codecs provide string-to-string mappings.
12201220

Misc/NEWS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,11 @@ Tests
327327
- Issue #17692: test_sqlite now works with unittest test discovery.
328328
Patch by Zachary Ware.
329329

330-
331330
Documentation
332331
-------------
333332

333+
- Issue #17844: Add links to encoders and decoders for bytes-to-bytes codecs.
334+
334335
- Issue #14097: improve the "introduction" page of the tutorial.
335336

336337
- Issue #17977: The documentation for the cadefault argument's default value

0 commit comments

Comments
 (0)