Puzzled by "is"

Jay Loden python at jayloden.com
Thu Aug 9 19:46:51 CEST 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