tuple weakref

darrell dgallion1 at yahoo.com
Sun Apr 13 11:30:28 EDT 2003


Looks like the only reference to your tuple is a weak one.
So it would die immediately.
Something must have more than a weakref to your tuple.

--Darrell


Robin Becker wrote:

> 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((....)))
> 
> or we make a non anonymous wrapper which is what we want to avoid.





More information about the Python-list mailing list