Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(29106)

Delta Between Two Patch Sets: Doc/library/base64.rst

Issue 17839: base64 module should use memoryview
Left Patch Set: Created 6 years, 4 months ago
Right Patch Set: Created 6 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | Doc/library/codecs.rst » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 :mod:`base64` --- RFC 3548: Base16, Base32, Base64 Data Encodings 1 :mod:`base64` --- RFC 3548: Base16, Base32, Base64 Data Encodings
2 ================================================================= 2 =================================================================
3 3
4 .. module:: base64 4 .. module:: base64
5 :synopsis: RFC 3548: Base16, Base32, Base64 Data Encodings 5 :synopsis: RFC 3548: Base16, Base32, Base64 Data Encodings
6 6
7 7
8 .. index:: 8 .. index::
9 pair: base64; encoding 9 pair: base64; encoding
10 single: MIME; base64 encoding 10 single: MIME; base64 encoding
(...skipping 10 matching lines...) Expand all
21 alphabets. Additionally, the decoding functions of the modern interface also 21 alphabets. Additionally, the decoding functions of the modern interface also
22 accept Unicode strings containing only ASCII characters. The legacy interface 22 accept Unicode strings containing only ASCII characters. The legacy interface
23 provides for encoding and decoding to and from file-like objects as well as 23 provides for encoding and decoding to and from file-like objects as well as
24 byte strings, but only using the Base64 standard alphabet. 24 byte strings, but only using the Base64 standard alphabet.
25 25
26 .. versionchanged:: 3.3 26 .. versionchanged:: 3.3
27 ASCII-only Unicode strings are now accepted by the decoding functions of 27 ASCII-only Unicode strings are now accepted by the decoding functions of
28 the modern interface. 28 the modern interface.
29 29
30 .. versionchanged:: 3.4 30 .. versionchanged:: 3.4
31 Any :term:`bytes-like object`\ s are now accepted by the 31 Any :term:`bytes-like object`\ s are now accepted by all
32 encoding and decoding functions of the modern interface. 32 encoding and decoding functions in this module.
33 33
34 The modern interface provides: 34 The modern interface provides:
35 35
36 .. function:: b64encode(s, altchars=None) 36 .. function:: b64encode(s, altchars=None)
37 37
38 Encode a byte string using Base64. 38 Encode a byte string using Base64.
39 39
40 *s* is the string to encode. Optional *altchars* must be a string of at leas t 40 *s* is the string to encode. Optional *altchars* must be a string of at leas t
41 length 2 (additional characters are ignored) which specifies an alternative 41 length 2 (additional characters are ignored) which specifies an alternative
42 alphabet for the ``+`` and ``/`` characters. This allows an application to e .g. 42 alphabet for the ``+`` and ``/`` characters. This allows an application to e .g.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 .. seealso:: 185 .. seealso::
186 186
187 Module :mod:`binascii` 187 Module :mod:`binascii`
188 Support module containing ASCII-to-binary and binary-to-ASCII conversions. 188 Support module containing ASCII-to-binary and binary-to-ASCII conversions.
189 189
190 :rfc:`1521` - MIME (Multipurpose Internet Mail Extensions) Part One: Mechanis ms for Specifying and Describing the Format of Internet Message Bodies 190 :rfc:`1521` - MIME (Multipurpose Internet Mail Extensions) Part One: Mechanis ms for Specifying and Describing the Format of Internet Message Bodies
191 Section 5.2, "Base64 Content-Transfer-Encoding," provides the definition o f the 191 Section 5.2, "Base64 Content-Transfer-Encoding," provides the definition o f the
192 base64 encoding. 192 base64 encoding.
193 193
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+