Module v.c.l.saferef

Part of vmc.contrib.louie

Refactored 'safe reference from dispatcher.py
Function safe_ref Return a *safe* weak reference to a callable target.
Class BoundMethodWeakref 'Safe' and reusable weak references to instance methods.
def safe_ref(target, on_delete=None):
Return a *safe* weak reference to a callable target.

- ``target``: The object to be weakly referenced, if it's a bound
  method reference, will create a BoundMethodWeakref, otherwise
  creates a simple weakref.
    
- ``on_delete``: If provided, will have a hard reference stored to
  the callable to be called after the safe reference goes out of
  scope with the reference object, (either a weakref or a
  BoundMethodWeakref) as argument.
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.