summaryrefslogtreecommitdiffstats
path: root/Doc/library/base64.rst
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2013-10-02 14:43:22 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2013-10-02 14:43:22 (GMT)
commitfdf239a855c82bc20df157815de947867aa2648e (patch)
tree05995514fc9cbb3283c5bdd2586982baebc3286b /Doc/library/base64.rst
parent73c6ee00805729919f98d4f2dbe27e16c54b4db2 (diff)
downloadcpython-fdf239a855c82bc20df157815de947867aa2648e.zip
cpython-fdf239a855c82bc20df157815de947867aa2648e.tar.gz
cpython-fdf239a855c82bc20df157815de947867aa2648e.tar.bz2
Close #17839: support bytes-like objects in base64 module
This mostly affected the encodebytes and decodebytes function (which are used by base64_codec) Also added a test to ensure all bytes-bytes codecs can handle memoryview input and tests for handling of multidimensional and non-bytes format input in the modern base64 API.
Diffstat (limited to 'Doc/library/base64.rst')
-rw-r--r--Doc/library/base64.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/base64.rst b/Doc/library/base64.rst
index 3b23e79..de87441 100644
--- a/Doc/library/base64.rst
+++ b/Doc/library/base64.rst
@@ -27,6 +27,10 @@ byte strings, but only using the Base64 standard alphabet.
ASCII-only Unicode strings are now accepted by the decoding functions of
the modern interface.
+.. versionchanged:: 3.4
+ Any :term:`bytes-like object`\ s are now accepted by all
+ encoding and decoding functions in this module.
+
The modern interface provides:
.. function:: b64encode(s, altchars=None)