[New-bugs-announce] [issue28481] Weird string comparison bug
MinJae Kwon
report at bugs.python.org
Thu Oct 20 00:03:48 EDT 2016
New submission from MinJae Kwon:
I found bug i think about string comparison
> var1 = 'aa'
> var1 is 'aa' # This is True
But if the string literal has special chacter (e.g., colon), the comparison results in False
> var2 = ':bb'
> var2 is ':bb' # This is False
Check it please.
----------
components: Unicode
messages: 279011
nosy: MinJae Kwon, ezio.melotti, haypo
priority: normal
severity: normal
status: open
title: Weird string comparison bug
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28481>
_______________________________________
More information about the New-bugs-announce
mailing list