Deep comparison of dicts - cmp() versus ==?

Chris Angelico rosuav at gmail.com
Thu Mar 19 23:34:54 EDT 2015


On Fri, Mar 20, 2015 at 2:27 PM, Rustom Mody <rustompmody at gmail.com> wrote:
> Numbers (not complex) satisfy the trichotomy law: ie for any 2 numbers x,y:
> x < y or x > y o x = y

Real numbers, yes, and integers in most computer representations, but
not IEEE floating point. Be careful of that distinction; we're talking
about computers here, not mythical numbers.

ChrisA



More information about the Python-list mailing list