On Sat, Mar 7, 2015 at 4:04 AM, Rustom Mody <rustompm...@gmail.com> wrote: > You dont grok your theory of computation very well do you? > > def foo(x): return x + x > def bar(x): return x + x > def baz(x): return 2*x > > One can imagine an implementation where > id(foo) == id(bar) > [I am assuming that id is a good enough approx to bit_representation] > > Can you imagine an implementation where > id(bar) == id(baz) > ?
No, I cannot imagine either. Those functions have different identities. They may be considered *equal* but they should not be *identical*. I can imagine a language in which they are considered indistinguishable and optimized down to one, but if you consider them to be the same function, then you've abolished all concept of identity. Also, I have no idea what any of this has to do with nans and container membership. ChrisA -- https://mail.python.org/mailman/listinfo/python-list