why () is () and [] is [] work in other way?

Serhiy Storchaka storchaka at gmail.com
Sat Apr 21 05:13:11 EDT 2012


>>>> [] is []
> False
>>>> id([]) == id([])
> True

 >>> id([1]) == id([2])
True

;)




More information about the Python-list mailing list