reverse function of id()

Olivier Deckmyn olivier.deckmyn at mail.dotcom.fr
Wed Oct 13 06:34:41 EDT 1999


Hi !

Is there a way to get the Python Object whose id is X...

ex :

myObject=MyClass()
myId=id(myObject)
myObject=None # See note
....
<far away>
....
myObject=FindObjectFromId(myID)
....

(Note : Please don't care about the ref count problems in my example, I know
that here myObject is released immediatly)

Thx !











More information about the Python-list mailing list