From: Antoine Pitrou Date: Sat, 4 May 2013 18:18:34 +0000 (+0200) Subject: Elaborate on bytes-like objects. X-Git-Tag: v3.3.2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5de183a07cfce837c926a3600369babdfc1a2ef4;p=thirdparty%2FPython%2Fcpython.git Elaborate on bytes-like objects. --- diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 19419a3c36f3..f30138adbc10 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -79,8 +79,12 @@ Glossary `_, Python's creator. bytes-like object - An object that supports the :ref:`bufferobjects`, like :class:`bytes` or - :class:`bytearray`. + An object that supports the :ref:`bufferobjects`, like :class:`bytes`, + :class:`bytearray` or :class:`memoryview`. Bytes-like objects can + be used for various operations that expect binary data, such as + compression, saving to a binary file or sending over a socket. + Some operations need the binary data to be mutable, in which case + not all bytes-like objects can apply. bytecode Python source code is compiled into bytecode, the internal representation