Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment: >>> 1 is 1|1 False >>> 1 is 1&1 False >>> 0 is 1^1 False >>> 2 is 1<<1 False __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue2417> __________________________________