Python’s “in” set operator October 23, 2022 by Tarik Yes, but it also means hash(b) == hash(x), so equality of the items isn’t enough to make them the same.