STINNER Victor added the comment:

I didn't understand the issue.

$ python2
>>> b'A'[0] == 65
False

$ python3
Python 3.4.1 (default, Nov  3 2014, 14:38:10) 
>>> b'A'[0] == 65
True

Oh ok, now I get it: Python 2 and Python 3 behaves differently when comparing a 
string of a single byte and an integer.

Ok to raise a warning when -b command line option is used.

----------
nosy: +haypo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23681>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to