summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-10-11 09:01:02 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-10-11 09:01:02 (GMT)
commite84c97656899750a8e6b01bef2cfc01b31d60220 (patch)
treedf461163e3ade56701a5844d1b1b47e29c887f9f /Doc
parent5df7fddc0c678f10ae6f9995c516dd7091fd6cbc (diff)
downloadcpython-e84c97656899750a8e6b01bef2cfc01b31d60220.zip
cpython-e84c97656899750a8e6b01bef2cfc01b31d60220.tar.gz
cpython-e84c97656899750a8e6b01bef2cfc01b31d60220.tar.bz2
Issue #25357: Add an optional newline paramer to binascii.b2a_base64().
base64.b64encode() uses it to avoid a memory copy.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/binascii.rst11
1 files changed, 8 insertions, 3 deletions
diff --git a/Doc/library/binascii.rst b/Doc/library/binascii.rst
index e3f134b..441aa57 100644
--- a/Doc/library/binascii.rst
+++ b/Doc/library/binascii.rst
@@ -52,11 +52,16 @@ The :mod:`binascii` module defines the following functions:
than one line may be passed at a time.
-.. function:: b2a_base64(data)
+.. function:: b2a_base64(data, \*, newline=True)
Convert binary data to a line of ASCII characters in base64 coding. The return
- value is the converted line, including a newline char. The length of *data*
- should be at most 57 to adhere to the base64 standard.
+ value is the converted line, including a newline char if *newline* is
+ true. The length of *data* should be at most 57 to adhere to the
+ base64 standard.
+
+
+ .. versionchanged:: 3.6
+ Added the *newline* parameter.
.. function:: a2b_qp(data, header=False)