1 #!/usr/bin/env python 2 3 a = 1 4 b = 2 5 c = 3 6 7 class X: 8 def __contains__(self, other): 9 return 1 10 11 a < b < c 12 13 x = X() 14 15 a == x != b 16 a is x is not b 17 a in x 18 19 # vim: tabstop=4 expandtab shiftwidth=4