python 2.7 and unicode (one more time)

Chris Angelico rosuav at gmail.com
Thu Nov 20 10:53:32 EST 2014


On Fri, Nov 21, 2014 at 2:40 AM, Peter Otten <__peter__ at web.de> 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.

ChrisA



More information about the Python-list mailing list