mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
Issue #27036: Fixed formatting references to "bytes-like object" in plural.
This commit is contained in:
parent
e23c90c344
commit
e5ea1abf91
6 changed files with 6 additions and 6 deletions
|
@ -91,7 +91,7 @@ Array objects support the ordinary sequence operations of indexing, slicing,
|
|||
concatenation, and multiplication. When using slice assignment, the assigned
|
||||
value must be an array object with the same type code; in all other cases,
|
||||
:exc:`TypeError` is raised. Array objects also implement the buffer interface,
|
||||
and may be used wherever :term:`bytes-like object`\ s are supported.
|
||||
and may be used wherever :term:`bytes-like objects <bytes-like object>` are supported.
|
||||
|
||||
The following data items and methods are also supported:
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
The :mod:`audioop` module contains some useful operations on sound fragments.
|
||||
It operates on sound fragments consisting of signed integer samples 8, 16, 24
|
||||
or 32 bits wide, stored in :term:`bytes-like object`\ s. All scalar items are
|
||||
or 32 bits wide, stored in :term:`bytes-like objects <bytes-like object>`. All scalar items are
|
||||
integers, unless specified otherwise.
|
||||
|
||||
.. versionchanged:: 3.4
|
||||
|
|
|
@ -40,7 +40,7 @@ package instead.
|
|||
the modern interface.
|
||||
|
||||
.. versionchanged:: 3.4
|
||||
Any :term:`bytes-like object`\ s are now accepted by all
|
||||
Any :term:`bytes-like objects <bytes-like object>` are now accepted by all
|
||||
encoding and decoding functions in this module. Ascii85/Base85 support added.
|
||||
|
||||
The modern interface provides:
|
||||
|
|
|
@ -21,7 +21,7 @@ higher-level modules.
|
|||
.. note::
|
||||
|
||||
``a2b_*`` functions accept Unicode strings containing only ASCII characters.
|
||||
Other functions only accept :term:`bytes-like object`\ s (such as
|
||||
Other functions only accept :term:`bytes-like objects <bytes-like object>` (such as
|
||||
:class:`bytes`, :class:`bytearray` and other objects that support the buffer
|
||||
protocol).
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ Hash algorithms
|
|||
There is one constructor method named for each type of :dfn:`hash`. All return
|
||||
a hash object with the same simple interface. For example: use :func:`sha1` to
|
||||
create a SHA1 hash object. You can now feed this object with :term:`bytes-like
|
||||
object`\ s (normally :class:`bytes`) using the :meth:`update` method.
|
||||
objects <bytes-like object>` (normally :class:`bytes`) using the :meth:`update` method.
|
||||
At any point you can ask it for the :dfn:`digest` of the
|
||||
concatenation of the data fed to it so far using the :meth:`digest` or
|
||||
:meth:`hexdigest` methods.
|
||||
|
|
|
@ -130,7 +130,7 @@ High-level Module Interface
|
|||
In-memory streams
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
||||
It is also possible to use a :class:`str` or :class:`bytes`-like object as a
|
||||
It is also possible to use a :class:`str` or :term:`bytes-like object` as a
|
||||
file for both reading and writing. For strings :class:`StringIO` can be used
|
||||
like a file opened in text mode. :class:`BytesIO` can be used like a file
|
||||
opened in binary mode. Both provide full read-write capabilities with random
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue