"x is y" means "id(y) == id(y)" "x is not y" means "id(x) != id(x)"
No; consider this: py> id([])==id([]) True py> [] is [] FalseComparing id's is the same as using the is operator only if you can guarantee that both operands are alive at the same time.
-- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list