From: Sandro Tosi Date: Sun, 13 May 2012 09:01:20 +0000 (+0200) Subject: Issue #14793: fix grammar in bytes object paragraph; patch by Tshepang Lekhonkhobe X-Git-Tag: v3.3.0a4~192^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3918b1ebfba284eee679a1d163cd9f400bff2f5f;p=python Issue #14793: fix grammar in bytes object paragraph; patch by Tshepang Lekhonkhobe --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index d46cee504a..b89387f154 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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.