python 2.7 and unicode (one more time)

Chris Angelico rosuav at
Thu Nov 20 16:53:32 CET 2014

On Fri, Nov 21, 2014 at 2:40 AM, Peter Otten <__peter__ at> wrote:
> I think that you may get a Unicode/Encode/Error when you try to /decode/ a
> unicode string is more confusing...

Hang on a minute, what does it even mean to decode a Unicode string?
That's where the problem is. Fortunately that's one that Py3 solved -
str simply doesn't have a decode() method.


More information about the Python-list mailing list