negative numbers are not equal...

Wojtek Walczak gminick at bzt.bzt
Thu Aug 14 17:31:42 EDT 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.

-- 
Regards,
Wojtek Walczak,
http://www.stud.umk.pl/~wojtekwa/



More information about the Python-list mailing list