need clarification on -0

moijes12 moijes12 at gmail.com
Sat Nov 28 02:09:06 EST 2009


Hi

I know the value -0 is quite meaningless and makes little sense.But I
was just fiddling.I am unable to figure out the below result


>>> -0 and True
0 ----------> (Why is this 0 and not say True or False)
>>> -0 and false
0
>>> -0 or True
True

Could someone please provide me some resources on how these operations
take place.I'd wanna find it out myself

Thanks
moijes



More information about the Python-list mailing list