property collections

Robin Becker robin at jessikat.fsnet.co.uk
Mon May 21 06:22:42 EDT 2001


In article <9e90k20aiu at enews1.newsguy.com>, Alex Martelli
<aleaxit at yahoo.com> writes
>"Robin Becker" <robin at jessikat.fsnet.co.uk> wrote in message
>news:g44pZKATy8B7Ewa2 at jessikat.fsnet.co.uk...
>    ...
>> My solutions seem to involve elements which need to refer to the parent
>> and thus create a loop.
>
>Not sure I understand your general problem, but, regarding
>this last item, have you tried the (new in 2.1) weak refs...?
>
>
>Alex
well now I would certainly use weak refs if that were feasible for all,
but some people are still using 1.5.2 and so I still have to worry about
memory loops. Weak refs are exactly the python only solution for this
sort of acquisition style object.
-- 
Robin Becker



More information about the Python-list mailing list