A WeakMethod class for storing bound methods using weak references. Current version 1.0.3, infrequently updated.
pip install weakrefmethodNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a weak reference to a bound method; call returns the method result or None if the object is garbage collected.
Ensure the argument is a bound method: obj.method, not Class.method.
Use wm() to call, not wm (which is a WeakMethod instance).
Ensure you pass a bound method from a Python-defined class. Alternatively, use weakref.WeakMethod from Python 3.4+ stdlib if on Python 3.4+.
Run 'pip install weakrefmethod' and ensure you are using the correct Python interpreter.
No dependency data recorded yet.