From 3918b1ebfba284eee679a1d163cd9f400bff2f5f Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Sun, 13 May 2012 11:01:20 +0200 Subject: Issue #14793: fix grammar in bytes object paragraph; patch by Tshepang Lekhonkhobe --- Doc/library/stdtypes.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index d46cee5..b89387f 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. -- cgit v0.12