Christian Heimes added the comment:

That's the correct behaviour. Iteration and item access of bytes don't return 
bytes but a small number, e.g. b[0] returns 116 and not b't'.

>>> b = b't'
>>> b[0]  in [b]
False
>>> b[0]
116
>>> ord(b)
116

But:
>>> b in [b]
True

----------
nosy: +christian.heimes
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

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

Reply via email to