surprise - byte in set

Dan Stromberg drsalists at gmail.com
Sat Jan 3 14:15:17 EST 2015


On Sat, Jan 3, 2015 at 10:50 AM, patrick vrijlandt <pvrijlandt at gmail.com> wrote:
> Hello list,
>> Let me first wish you all the best in 2015!
>> Today I was trying to test for occurrence of a byte in a set ...

In the last case, the set has integers in it.
Try:
b'b'[0] in set(b'abc')


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /