Message114337
Oh. flox told me that there are other cases raising BytesWarning:
'abc' in {b'abc'}
'abc' in (b'xxx',)
'abc' in [b'xxx']
I suppose that the behaviour is different (only fail with same value / fail with different values) because set does first compare the hash (as dict), whereas tuple and list use a classic comparaison. |
|
Date |
User |
Action |
Args |
2010-08-19 10:25:32 | vstinner | set | recipients:
+ vstinner |
2010-08-19 10:25:31 | vstinner | set | messageid: <1282213531.89.0.386314790399.issue9636@psf.upfronthosting.co.za> |
2010-08-19 10:25:29 | vstinner | link | issue9636 messages |
2010-08-19 10:25:28 | vstinner | create | |
|