tuple weakref

Martin v. Löwis martin at v.loewis.de
Sun Apr 13 12:21:29 EDT 2003


Robin Becker <robin at jessikat.fsnet.co.uk> writes:

> What's the correct incantation to get a weak reference to a tuple? The
> rather obvious wrapper approach fails as the wrapper dies immediately
> 
> ie weakref.ref(Wrapper((....)))

What is 'Wrapper'?

Tuples are not weakly-referencable, unless you change the source code
of tupleobject.c.

Regards,
Martin




More information about the Python-list mailing list