Siah wrote:

> I think that's because:

No idea what is because of what. Please quote essential parts of the posting
you refer to.
 
>>>> [] is []
> False
>>>> () is ()
> True

This is an implementation artifact. The interpreter chose to create only one
instance for the empty tuple for optimization reasons. But you shouldn't
rely on this. 

For example, for small numbers,

1 is 1

is usually true, but not for larger:

10000000000000 is 10000000000000 

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to