Commit 708d88c3 authored by Sandro Tosi's avatar Sandro Tosi

merge with 3.2

parents 7fb79fcb 3918b1eb
...@@ -823,7 +823,8 @@ string literals. In addition to the functionality described here, there are ...@@ -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. also string-specific methods described in the :ref:`string-methods` section.
Bytes and bytearray objects contain single bytes -- the former is immutable 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 constructor, :func:`bytes`, and from literals; use a ``b`` prefix with normal
string syntax: ``b'xyzzy'``. To construct byte arrays, use the string syntax: ``b'xyzzy'``. To construct byte arrays, use the
:func:`bytearray` function. :func:`bytearray` function.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment