python 2.7 and unicode (one more time)

Peter Otten __peter__ at web.de
Thu Nov 20 11:32:54 EST 2014


Chris Angelico wrote:

> 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?

Let's not get philosophical ;)

> 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