#NEWLINE# def __init__( self , target , onDelete = None ) : #NEWLINE# #INDENT# 'Return a weak-reference-like instance for a bound method\n\n        target -- the instance-method target for the weak\n            reference, must have __self__ and __func__ attributes\n            and be reconstructable via:\n                target.__func__.__get__( target.__self__ )\n            which is true of built-in instance methods.\n        onDelete -- optional callback which will be called\n            when this weak reference ceases to be valid\n            (i.e. either the object or the function is garbage\n            collected).  Should take a single argument,\n            which will be passed a pointer to this object.\n        ' #NEWLINE# assert ( getattr ( target . __self__ , target . __name__ ) == target ) , ( "method %s isn't available as the attribute %s of %s" % ( target , target . __name__ , target . __self__ ) ) #NEWLINE# super ( BoundNonDescriptorMethodWeakref , self ) . __init__ ( target , onDelete )