[New-bugs-announce] [issue9847] Binary strings never compare equal to raw/normal strings
James Hutchison
report at bugs.python.org
Mon Sep 13 19:31:15 CEST 2010
New submission from James Hutchison <jamesghutchison at gmail.com>:
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"" == r""):
print("raw and binary equal, normal isn't");
else:
print("they aren't equal");
output: they aren't equal
----------
components: Interpreter Core
messages: 116331
nosy: Jimbofbx
priority: normal
severity: normal
status: open
title: Binary strings never compare equal to raw/normal strings
type: behavior
versions: Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9847>
_______________________________________
More information about the New-bugs-announce
mailing list