Issue #14793: fix grammar in bytes object paragraph; patch by Tshepang Lekhonkhobe

This commit is contained in:
Sandro Tosi 2012-05-13 11:01:20 +02:00
parent 38b86b4cf5
commit 3918b1ebfb
1 changed files with 2 additions and 1 deletions

View File

@ -819,7 +819,8 @@ string literals. In addition to the functionality described here, there are
also string-specific methods described in the :ref:`string-methods` section.
Bytes and bytearray objects contain single bytes -- the former is immutable
while the latter is a mutable sequence. Bytes objects can be constructed the
while the latter is a mutable sequence.
Bytes objects can be constructed by using the
constructor, :func:`bytes`, and from literals; use a ``b`` prefix with normal
string syntax: ``b'xyzzy'``. To construct byte arrays, use the
:func:`bytearray` function.