There was an error while loading. Please reload this page.
2 parents b0ba21d + fba6df1 commit 226a9fbCopy full SHA for 226a9fb
docs/topics/python3.txt
@@ -238,7 +238,7 @@ under Python 3, use the :func:`str` builtin::
238
str('my string')
239
240
In Python 3, there aren't any automatic conversions between ``str`` and
241
-``bytes``, and the :mod:`codecs` module became more strict. :meth:`str.decode`
+``bytes``, and the :mod:`codecs` module became more strict. :meth:`str.encode`
242
always returns ``bytes``, and ``bytes.decode`` always returns ``str``. As a
243
consequence, the following pattern is sometimes necessary::
244
0 commit comments