Who knows somefunction?

Paul Rubin phr-n2002b at NOSPAMnightsong.com
Thu Sep 26 23:42:30 CEST 2002


Erik Max Francis <max at alcyone.com> writes:
> > Is there a function <somefunction> in Python
> > for which
> > 
> > something is <somefunction>(id(something))
> > 
> > returns invariably true?
> 
> Not offhand, but there's an easier test.  x is y really just means id(x)
> == id(y), so you could change this test to:
> 
> 	id(something) == id(somethingElse)
> 
> and you probably wouldn't have the need for your hypothetical function.

No I think he's asking for a way to dereference an id of an object.
And the answer is there's no way to do that.



More information about the Python-list mailing list