negative numbers are not equal...
gminick at bzt.bzt
Thu Aug 14 23:31:42 CEST 2008
On Thu, 14 Aug 2008 18:23:21 -0300, ariel ledesma wrote:
> i see now, so i guess that's also why id() returns the same address for
> them as well...
It just have to work like this.
a is b
is actually equal to:
id(a) == id(b)
so there is no other way for id() in such case.
Hope this helps.
More information about the Python-list