mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Elaborate on bytes-like objects.
This commit is contained in:
commit
609a56f788
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue