Browse files

[py3] str.decode does not exist; str.encode was intended

  • Loading branch information...
1 parent 58a2fc8 commit fba6df19b5d7076e6858b3bd773911a529d60b30 @intgr intgr committed Feb 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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::

0 comments on commit fba6df1

Please sign in to comment.