[issue13360] UnicodeWarning raised on dict() and set()

2011-11-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: I fail to see the issue. What exactly is the problem with the warning? It looks all consistent and helpful to me. -- nosy: +loewis ___ Python tracker ___

[issue13360] UnicodeWarning raised on dict() and set()

2011-11-06 Thread Florent Xicluna
Florent Xicluna added the comment: 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 t

[issue13360] UnicodeWarning raised on dict() and set()

2011-11-06 Thread Florent Xicluna
New submission from Florent Xicluna : The UnicodeWarning is raised on some dict or set operations. It is not very helpful, and sometimes annoying. And it is somewhat inconsistent. # ** warning not raised ** $ python2.7 -c "print u'd\xe9' in {'foo', 'bar'}" False $ python2.7 -c "print 'd\xe9' i