Ian Kelly ian.g.kelly at
Wed Mar 5 05:08:58 CET 2014

On Tue, Mar 4, 2014 at 8:36 PM, Rustom Mody <rustompmody at> 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.

More information about the Python-list mailing list