summaryrefslogtreecommitdiff
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-05-04 20:18:34 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-05-04 20:18:34 +0200
commita09657e94edef6e3cc31af93076e2e4b74955bef (patch)
treea6926625cdb5de3a1716521f63e399a66682ad75 /Doc/glossary.rst
parent5cea09d290a1c0a1615db64cff31108948269596 (diff)
downloadcpython-git-a09657e94edef6e3cc31af93076e2e4b74955bef.tar.gz
Elaborate on bytes-like objects.
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r--Doc/glossary.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 0d02d1acfc..219a6caf2c 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -79,7 +79,11 @@ Glossary
bytes-like object
An object that supports the :ref:`buffer protocol <bufferobjects>`,
- like :class:`str` or :class:`bytearray`.
+ like :class:`str`, :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