Message177819
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 |
|
Date |
User |
Action |
Args |
2012-12-20 13:55:35 | christian.heimes | set | recipients:
+ christian.heimes, ivb |
2012-12-20 13:55:34 | christian.heimes | set | messageid: <1356011734.95.0.0818645399765.issue16738@psf.upfronthosting.co.za> |
2012-12-20 13:55:34 | christian.heimes | link | issue16738 messages |
2012-12-20 13:55:34 | christian.heimes | create | |
|