diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-04 18:18:53 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-04 18:18:53 (GMT) |
commit | 609a56f788293585039e78a108f8c3aff8ac245d (patch) | |
tree | 523178f8179b0ff92b28d71c3f1f17ba2c80fa04 | |
parent | 1a6cb30a346ba8812d6abc77fddee636ae06ccff (diff) | |
parent | 5de183a07cfce837c926a3600369babdfc1a2ef4 (diff) | |
download | cpython-609a56f788293585039e78a108f8c3aff8ac245d.zip cpython-609a56f788293585039e78a108f8c3aff8ac245d.tar.gz cpython-609a56f788293585039e78a108f8c3aff8ac245d.tar.bz2 |
Elaborate on bytes-like objects.
-rw-r--r-- | Doc/glossary.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 19419a3..f30138a 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -79,8 +79,12 @@ Glossary <http://www.python.org/~guido/>`_, 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 |