tuple weakref

Robin Becker robin at jessikat.fsnet.co.uk
Mon Apr 14 00:02:36 CEST 2003


In article <m3vfxi15xg.fsf at mira.informatik.hu-berlin.de>, Martin v.
Löwis <martin at v.loewis.de> writes
>Alex Martelli <aleax at aleax.it> writes:
>
>> The simplest solution is to have pyRXP return a tree of *LISTS*,
>
>Why is that a solution?
>
>>>> x=[]
>>>> import weakref
>>>> weakref.ref(x)
>Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>TypeError: cannot create weak reference to 'list' object
>
>Regards,
>Martin
I was going to say that, but you weren't down at the pub :)

-- 
Robin Becker




More information about the Python-list mailing list