This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vdupras
Recipients vdupras
Date 2010-06-21.14:46:13
SpamBayes Score 0.06135385
Marked as misclassified No
Message-id <1277131575.09.0.876680898489.issue9043@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2010-06-21 14:46:15vduprassetrecipients: + vdupras
2010-06-21 14:46:15vduprassetmessageid: <1277131575.09.0.876680898489.issue9043@psf.upfronthosting.co.za>
2010-06-21 14:46:13vdupraslinkissue9043 messages
2010-06-21 14:46:13vduprascreate