Who knows somefunction?
Erik Max Francis
max at alcyone.com
Thu Sep 26 17:34:04 EDT 2002
Gregor Lingl wrote:
> 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.
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Love is the wisdom of the fool and the folly of the wise.
\__/ Samuel Johnson
Python chess module / http://www.alcyone.com/pyos/chess/
A chess game adjudicator in Python.
More information about the Python-list