Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_weakref.py1031 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 …]
/external/python/cpython3/Lib/
Dweakref.py36 class WeakMethod(ref): class
74 if isinstance(other, WeakMethod):
81 if isinstance(other, WeakMethod):
/external/python/cpython3/Doc/library/
Dweakref.rst216 .. class:: WeakMethod(method)
221 hold of it. :class:`WeakMethod` has special code to recreate the bound
231 >>> r = weakref.WeakMethod(c.method)
/external/python/cpython3/Doc/whatsnew/
D3.4.rst1751 New :class:`~weakref.WeakMethod` class simulates weak references to bound
/external/python/cpython3/Misc/
DHISTORY5649 - Issue #14631: Add a new :class:`weakref.WeakMethod` to simulate weak