Francis Girard wrote: > Wow ! What is it that are compared ? I think it's the references (i.e. the > adresses) that are compared. The "None" reference may map to the physical 0x0 > adress whereas 100 is internally interpreted as an object for which the > reference (i.e. address) exists and therefore greater than 0x0. > > Am I interpreting correctly ?
your hypothesis might match the observations, but it doesn't match the implementation. nor the documentation: " ... objects of different types always compare unequal, and are ordered consistently but arbitrarily." (see my others posts in this thread for more details) </F> -- http://mail.python.org/mailman/listinfo/python-list