Home
last modified time | relevance | path

Searched refs:WeakMethod (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Lib/test/
Dtest_weakref.py1102 r = weakref.WeakMethod(o.some_method)
1111 r = weakref.WeakMethod(o.some_method)
1119 r = weakref.WeakMethod(o.some_method)
1131 r = weakref.WeakMethod(o.some_method, cb)
1147 r = weakref.WeakMethod(o.some_method, cb)
1162 r = weakref.WeakMethod(o.some_method, cb)
1176 a = weakref.WeakMethod(x.some_method)
1177 b = weakref.WeakMethod(y.some_method)
1178 c = weakref.WeakMethod(x.other_method)
1179 d = weakref.WeakMethod(y.other_method)
[all …]
/third_party/python/Lib/
Dweakref.py39 class WeakMethod(ref): class
77 if isinstance(other, WeakMethod):
84 if isinstance(other, WeakMethod):
/third_party/python/Doc/library/
Dweakref.rst210 .. class:: WeakMethod(method)
215 hold of it. :class:`WeakMethod` has special code to recreate the bound
225 >>> r = weakref.WeakMethod(c.method)
/third_party/python/Doc/whatsnew/
D3.4.rst1751 New :class:`~weakref.WeakMethod` class simulates weak references to bound
/third_party/python/Misc/
DHISTORY5649 - Issue #14631: Add a new :class:`weakref.WeakMethod` to simulate weak