Message108272
If we run 2to3 on the following code:
s = b' '
print s[0] == s
we end up with this:
s = b' '
print(s[0] == s)
However, the first code, under python2 prints True while the converted code, under python3 prints False.
Shouldn't 2to3 convert this code to:
s = b' '
print s[0:1] == s
instead? |
|
Date |
User |
Action |
Args |
2010-06-21 14:46:15 | vdupras | set | recipients:
+ vdupras |
2010-06-21 14:46:15 | vdupras | set | messageid: <1277131575.09.0.876680898489.issue9043@psf.upfronthosting.co.za> |
2010-06-21 14:46:13 | vdupras | link | issue9043 messages |
2010-06-21 14:46:13 | vdupras | create | |
|