id functions of ints, floats and strings

Dan Bishop danb_83 at yahoo.com
Sat Apr 5 23:59:02 EDT 2008


On Apr 5, 9:30 pm, Steve Holden <st... at holdenweb.com> wrote:
>
> In fact all you can in truth say is that
>
>    a is  b --> a == b
>

You can't even guarantee that.

>>> inf = 1e1000
>>> nan = inf / inf
>>> nan is nan
True
>>> nan == nan
False



More information about the Python-list mailing list