#!/usr/local/bin/python2 class C(object): def __eq__(self, v): return v == 1 print C() in []