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

Chris Angelico rosuav at gmail.com
Fri Mar 20 01:27:58 EDT 2015


On Fri, Mar 20, 2015 at 4:09 PM, Ben Finney <ben+python at benfinney.id.au> wrote:
> Chris Angelico <rosuav at gmail.com> writes:
>
>> Real numbers, yes […] but not IEEE floating point. Be careful of that
>> distinction; we're talking about computers here, not mythical numbers.
>
> So real numbers are mythical? IEEE floating point values are more real
> than real numbers? Just what are you saying, man?

Poor choice of words. Not "mythical", but "theoretical". Comparisons
in Python are between actual representable numbers, not some
theoretical entire range of reals. Python operators and operations are
not defined in terms of real numbers, but objects.

ChrisA



More information about the Python-list mailing list