summaryrefslogtreecommitdiff
path: root/docs/topics/python3.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/topics/python3.txt')
-rw-r--r--docs/topics/python3.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/python3.txt b/docs/topics/python3.txt
index b44c180d7f..9941597c3a 100644
--- a/docs/topics/python3.txt
+++ b/docs/topics/python3.txt
@@ -238,7 +238,7 @@ under Python 3, use the :func:`str` builtin::
str('my string')
In Python 3, there aren't any automatic conversions between ``str`` and
-``bytes``, and the :mod:`codecs` module became more strict. :meth:`str.decode`
+``bytes``, and the :mod:`codecs` module became more strict. :meth:`str.encode`
always returns ``bytes``, and ``bytes.decode`` always returns ``str``. As a
consequence, the following pattern is sometimes necessary::