[issue9847] Binary strings never compare equal to raw/normal strings

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: works for me -> invalid stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-li

[issue9847] Binary strings never compare equal to raw/normal strings

2010-09-13 Thread Florent Xicluna
Florent Xicluna added the comment: This is by design in Python 3 http://docs.python.org/py3k/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit -- nosy: +flox resolution: -> works for me status: open -> closed ___ Python tracker

[issue9847] Binary strings never compare equal to raw/normal strings

2010-09-13 Thread James Hutchison
New submission from James Hutchison : Tested on Python 3.1.2 Windows XP 32-bit Binary strings (such as what is returned by filereader.readline()) are never equal to raw or normal strings, even when both strings are empty if(b"" == ""): print("Strings are equal"); else: if(b"" =