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 flox
Recipients ezio.melotti, flox
Date 2011-11-06.20:46:07
SpamBayes Score 0.053076047
Marked as misclassified No
Message-id <1320612368.6.0.963659023462.issue13360@psf.upfronthosting.co.za>
In-reply-to
Content
Similar expressions where the warning is raised or not (depending on "latin-1" comparison):


$ python2.7 -c "print u'd\xe9' in {'foo', 'd\xe9r'}"
False
$ python2.7 -c "print u'd\xe9' in {'foo', 'd\xe9'}"
-c:1: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
False


$ python2.7 -c "print 'd\xe9r' in {u'foo', u'd\xe9'}"
False
$ python2.7 -c "print 'd\xe9'  in {u'foo', u'd\xe9'}"
-c:1: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
False
History
Date User Action Args
2011-11-06 20:46:08floxsetrecipients: + flox, ezio.melotti
2011-11-06 20:46:08floxsetmessageid: <1320612368.6.0.963659023462.issue13360@psf.upfronthosting.co.za>
2011-11-06 20:46:08floxlinkissue13360 messages
2011-11-06 20:46:07floxcreate