Message238626
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. |
|
Date |
User |
Action |
Args |
2015-03-20 09:14:25 | vstinner | set | recipients:
+ vstinner, brett.cannon, paul.moore, Claudiu.Popa, berker.peksag, martin.panter, serhiy.storchaka |
2015-03-20 09:14:25 | vstinner | set | messageid: <1426842865.62.0.396015367793.issue23681@psf.upfronthosting.co.za> |
2015-03-20 09:14:25 | vstinner | link | issue23681 messages |
2015-03-20 09:14:25 | vstinner | create | |
|