chrisks at NOSPAMudel.edu
Fri Aug 6 10:50:19 CEST 2004
Anthony Baxter wrote:
> On Fri, 06 Aug 2004 05:39:51 GMT, Chris S. <chrisks at nospamudel.edu> wrote:
>>Naturally, I could just recursively parse all the data comparing every
>>element to every previously listed object, but is there a less obtrusive
>>method? Python figures out when to delete objects based on the remaining
>>references to an object. Is there a way to access this information to
>>automatically lookup these references? Any help is greatly appreciated.
> Use the "id()" of the objects?
Well, I was thinking of a function that takes an object's id and returns
the ids of all the objects that reference it. Given that Python keeps
this information internally (I believe), my question is how do I access
his data and what would be the easiest way to code this function?
More information about the Python-list