diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2012-05-13 09:01:20 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2012-05-13 09:01:20 (GMT) |
commit | 3918b1ebfba284eee679a1d163cd9f400bff2f5f (patch) | |
tree | 665c3b129c314b7f620fd526086ba193c537cc50 /Doc | |
parent | 38b86b4cf555e7054fb0c51cdbb1b76fed0ccf7c (diff) | |
download | cpython-3918b1ebfba284eee679a1d163cd9f400bff2f5f.zip cpython-3918b1ebfba284eee679a1d163cd9f400bff2f5f.tar.gz cpython-3918b1ebfba284eee679a1d163cd9f400bff2f5f.tar.bz2 |
Issue #14793: fix grammar in bytes object paragraph; patch by Tshepang Lekhonkhobe
Diffstat (limited to 'Doc')
-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 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. |