Reference

Rustom Mody rustompmody at gmail.com
Wed Mar 5 01:03:36 EST 2014


On Wednesday, March 5, 2014 10:36:37 AM UTC+5:30, Steven D'Aprano wrote:
> On Tue, 04 Mar 2014 19:36:38 -0800, Rustom Mody wrote:

> > Python's 'is' leaks
> > the machine abstraction. 'id' does it legitimately (somewhat), 'is' does
> > it illegitimately


> Can you elaborate on why id() is legitimate and "is" is not?

Mostly a question of more or less infelicitous English leading to philosophical
nonsense. [And note I put a 'somewhat']

I can say "'id' is just 'machine-id' is just address at some low level"

Its uglier to say "Is is machine-is"

And before you bring it up, "Jython's id is not machine-id" is putting
the cart before the horse.

"Jython is an imitation of Cpython and does a good job but not quite as
in the case of 'id'"

is the right order (IMHO)



More information about the Python-list mailing list