[issue13360] UnicodeWarning raised on sequence and set comparisons

2011-11-08 Thread Florent Xicluna
Florent Xicluna added the comment: Then we'll live with it, or work around when it's possible. For the purists, hopefully we have Python 3 which allows to mix bytes and strings in a set(). -- resolution: -> rejected status: open -> closed ___ Pytho

[issue13360] UnicodeWarning raised on sequence and set comparisons

2011-11-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Often sequences or sets have heterogeneous keys, mixing and > , and in this case there's no easy way to work with them > without raising this UnicodeWarning. That's a bug in the application. You must not mix byte strings and unicode strings as dictionary ke

[issue13360] UnicodeWarning raised on sequence and set comparisons

2011-11-06 Thread Florent Xicluna
Florent Xicluna added the comment: Often sequences or sets have heterogeneous keys, mixing and , and in this case there's no easy way to work with them without raising this UnicodeWarning. The "logging" module is such an example. Of course it is only a warning, not a strong annoyance. -