Florent Xicluna <florent.xicl...@gmail.com> added the comment:

Various annoyances:

>>> some_set = {'oOO', b'oOO'}
BytesWarning: Comparison between bytes and string

>>> 'a' in {b'', ''}
BytesWarning: Comparison between bytes and string

>>> 'abc' in (b'def', 123)
BytesWarning: Comparison between bytes and string

>>> 'abc' in {b'abc', 123}
BytesWarning: Comparison between bytes and string

>>> {42: 'abc'} == {42: b'def'}
BytesWarning: Comparison between bytes and string

----------
nosy: +flox

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9636>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to