Reference

Ian Kelly ian.g.kelly at gmail.com
Tue Mar 4 23:08:58 EST 2014


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



More information about the Python-list mailing list