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 vstinner
Recipients vstinner
Date 2010-08-19.10:25:28
SpamBayes Score 0.00037430483
Marked as misclassified No
Message-id <1282213531.89.0.386314790399.issue9636@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-08-19 10:25:32vstinnersetrecipients: + vstinner
2010-08-19 10:25:31vstinnersetmessageid: <1282213531.89.0.386314790399.issue9636@psf.upfronthosting.co.za>
2010-08-19 10:25:29vstinnerlinkissue9636 messages
2010-08-19 10:25:28vstinnercreate