Puzzled by "is"

Jay Loden python at jayloden.com
Thu Aug 9 13:46:51 EDT 2007


Dick Moores wrote:
>  >>> () is ()
> True
>  >>> (1,) is (1,)
> False
> 
> Why?
> 
> Thanks,
> 
> Dick Moores

>From the docs for 'is':




More information about the Python-list mailing list