# wx.lib.pubsub.core.weakmethod.WeakMethod¶

Represent a weak bound method, i.e. a method which doesn’t keep alive the object that it is bound to.

## Class Hierarchy¶

Inheritance diagram for class WeakMethod:

## Methods Summary¶

 __init__ The method must be bound. notifyDead will be called when refs Return true if we are storing same object referred to by weakRef.

## Class API¶

class WeakMethod

Represent a weak bound method, i.e. a method which doesn’t keep alive the object that it is bound to.

### Methods¶

__init__(self, method, notifyDead = None)

The method must be bound. notifyDead will be called when object that method is bound to dies.

refs(self, weakRef)

Return true if we are storing same object referred to by weakRef.