On Tue, Mar 4, 2014 at 8:36 PM, Rustom Mody <rustompm...@gmail.com> wrote: > * ... which summarizes my objection in this thread: Python's 'is' leaks the > machine abstraction. 'id' does it legitimately (somewhat), > 'is' does it illegitimately
Well, since "if x == None" is buggy as a test for sentinel values, that means the only legitimate non-buggy way to do it is with "if id(x) == id(None)", which just seems gross to me. -- https://mail.python.org/mailman/listinfo/python-list