[Python-checkins] cpython (3.2): Issue #14793: fix grammar in bytes object paragraph; patch by Tshepang
sandro.tosi
python-checkins at python.org
Sun May 13 11:03:59 CEST 2012
http://hg.python.org/cpython/rev/e0dcd732055f
changeset: 76896:e0dcd732055f
branch: 3.2
parent: 76887:04e7264e8fcf
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sun May 13 11:01:20 2012 +0200
summary:
Issue #14793: fix grammar in bytes object paragraph; patch by Tshepang Lekhonkhobe
files:
Doc/library/stdtypes.rst | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -819,7 +819,8 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list