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 christian.heimes
Recipients christian.heimes, ivb
Date 2012-12-20.13:55:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356011734.95.0.0818645399765.issue16738@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2012-12-20 13:55:35christian.heimessetrecipients: + christian.heimes, ivb
2012-12-20 13:55:34christian.heimessetmessageid: <1356011734.95.0.0818645399765.issue16738@psf.upfronthosting.co.za>
2012-12-20 13:55:34christian.heimeslinkissue16738 messages
2012-12-20 13:55:34christian.heimescreate