diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2012-05-13 09:01:36 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2012-05-13 09:01:36 (GMT) |
commit | 708d88c33441b29760b9246d61844eb59c1d0f3a (patch) | |
tree | 508568b165511d671fff1449c3f9631f93161fdd | |
parent | 7fb79fcb64ad9832c2d616b1b6fe5a93d2ff3288 (diff) | |
parent | 3918b1ebfba284eee679a1d163cd9f400bff2f5f (diff) | |
download | cpython-708d88c33441b29760b9246d61844eb59c1d0f3a.zip cpython-708d88c33441b29760b9246d61844eb59c1d0f3a.tar.gz cpython-708d88c33441b29760b9246d61844eb59c1d0f3a.tar.bz2 |
merge with 3.2
-rw-r--r-- | Doc/library/stdtypes.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index e1f4748..212fd5e 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -823,7 +823,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. |