mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
#16518: use "bytes-like object" throughout the docs.
This commit is contained in:
parent
28faf03d44
commit
c228e96726
8 changed files with 24 additions and 28 deletions
|
|
@ -21,8 +21,9 @@ higher-level modules.
|
|||
.. note::
|
||||
|
||||
``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).
|
||||
Other functions only accept :term:`bytes-like object`\ s (such as
|
||||
:class:`bytes`, :class:`bytearray` and other objects that support the buffer
|
||||
protocol).
|
||||
|
||||
.. versionchanged:: 3.3
|
||||
ASCII-only unicode strings are now accepted by the ``a2b_*`` functions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue