diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-12-20 12:58:41 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-12-20 12:58:41 (GMT) |
commit | 08316769620c83e32a6913eee0a6555cd6e1efa9 (patch) | |
tree | 4e5f419fe6e92ebfa05f0115c8925f83969acb93 /Doc/library/binascii.rst | |
parent | 8691bff6db78a45fd89a385401ece64921867500 (diff) | |
download | cpython-08316769620c83e32a6913eee0a6555cd6e1efa9.zip cpython-08316769620c83e32a6913eee0a6555cd6e1efa9.tar.gz cpython-08316769620c83e32a6913eee0a6555cd6e1efa9.tar.bz2 |
Issue #13637: "a2b" functions in the binascii module now accept ASCII-only unicode strings.
Diffstat (limited to 'Doc/library/binascii.rst')
-rw-r--r-- | Doc/library/binascii.rst | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/library/binascii.rst b/Doc/library/binascii.rst index 2aa3702..baf430d 100644 --- a/Doc/library/binascii.rst +++ b/Doc/library/binascii.rst @@ -20,8 +20,13 @@ higher-level modules. .. note:: - Encoding and decoding functions do not accept Unicode strings. Only bytestring - and bytearray objects can be processed. + ``a2b_*`` functions accept Unicode strings containing only ASCII characters. + Other functions only accept bytes and bytes-compatible objects (such as + bytearray objects and other objects implementing the buffer API). + + .. versionchanged:: 3.3 + ASCII-only unicode strings are now accepted by the ``a2b_*`` functions. + The :mod:`binascii` module defines the following functions: |