From: Yukihiro Matsumoto Date: 2009-10-26T07:02:28+09:00 Subject: Re: Using id2ref for anything? Hi, In message "Re: Using id2ref for anything?" on Mon, 26 Oct 2009 05:41:52 +0900, Charles Oliver Nutter writes: |ObjectSpace._id2ref is another of those peculiar methods, an artifact |of a particular implementation which, due to its lack of a |copying/compacting garbage collector, can always locate in memory an |object given its "id". This is typically *not* easily possible on |other VMs, where objects move around and it may even be difficult to |get a unique "id" for a given object since memory locations keep |moving and adding a numeric ID would increase object or object handle |sizes. Originally, _id2ref is an implementation dependent hack for weakref, so that you can remove it, if you can provide the better way. matz.