On Sun, 2007-09-30 at 16:25 -0700, Guido van Rossum wrote:
> [...]
> (**Note:** in Python 3.0a1, comparing a bytes instance with a str
> instance would raise TypeError, on the premise that this would catch
> the occasional mistake quicker, especially in code ported from Python
> 2.x.  However, a long discussion on the python-3000 list pointed out
> so many problems with this that it is clearly a bad idea, to be rolled
> back in 3.0a2 regardless of the fate of the rest of this PEP.)
> [...]
> Like the bytes type in Python 3.0a1, and unlike the relationship
> between str and unicode in Python 2.x, any attempt to mix bytes (or
> buffer) objects and str objects without specifying an encoding will
> raise a TypeError exception.  This is the case even for simply
> comparing a bytes or buffer object to a str object (even violating the
> general rule that comparing objects of different types for equality
> should just return False).

It appears that you didn't revise the latter paragraph after adding the
former paragraph.

-- 
Carsten Haese
http://informixdb.sourceforge.net


_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to