[Python-checkins] cpython (merge 3.3 -> default): Elaborate on bytes-like objects.
antoine.pitrou
python-checkins at python.org
Sat May 4 20:19:04 CEST 2013
http://hg.python.org/cpython/rev/193f25352e1c
changeset: 83610:193f25352e1c
parent: 83608:d5ef330bac50
parent: 83609:6bd2446f129a
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat May 04 20:18:53 2013 +0200
summary:
Elaborate on bytes-like objects.
files:
Doc/glossary.rst | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -79,8 +79,12 @@
<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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list