#!/usr/bin/python x = "hello" y = "hello" print x is y # seems implementation dependent x = [1,2] y = [1,2] print x is y # false x = (1,2) y = (1,2) print x is y # false for me; maybe impl depend x = [] print x is not None # false, it's empty but still a list