vrml.weaktuple

tuple sub-class which holds weak references to objects

Classes

class WeakTuple( tuple ):
tuple sub-class holding weakrefs to items
The weak reference tuple is intended to allow you to store references to a list of objects without needing to manage weak references directly.
For the most part, the WeakTuple operates just like a tuple object, in that it allows for all of the standard tuple operations. The difference is that the WeakTuple class only stores weak references to its items. As a result, adding an object to the tuple does not necessarily mean that it will still be there later on during execution (if the referent has been garbage collected).
Because WeakTuple's are static (their membership doesn't change), they will raise ReferenceError when a sub-item is missing rather than skipping missing items as does the WeakList. This can occur for basically _any_ use of the tuple.