Searched refs:WeakMethod (Results 1 – 5 of 5) sorted by relevance
1031 r = weakref.WeakMethod(o.some_method)1040 r = weakref.WeakMethod(o.some_method)1048 r = weakref.WeakMethod(o.some_method)1060 r = weakref.WeakMethod(o.some_method, cb)1076 r = weakref.WeakMethod(o.some_method, cb)1091 r = weakref.WeakMethod(o.some_method, cb)1105 a = weakref.WeakMethod(x.some_method)1106 b = weakref.WeakMethod(y.some_method)1107 c = weakref.WeakMethod(x.other_method)1108 d = weakref.WeakMethod(y.other_method)[all …]
36 class WeakMethod(ref): class74 if isinstance(other, WeakMethod):81 if isinstance(other, WeakMethod):
216 .. class:: WeakMethod(method)221 hold of it. :class:`WeakMethod` has special code to recreate the bound231 >>> r = weakref.WeakMethod(c.method)
1751 New :class:`~weakref.WeakMethod` class simulates weak references to bound
5649 - Issue #14631: Add a new :class:`weakref.WeakMethod` to simulate weak