def __init__(self, fn):
            try:
                self._obj = ref(fn.im_self)
                self._meth = fn.im_func
            except __HOLE__:
                # It's not a bound method.
                self._obj = None
                self._meth = fn
dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/api/client.py/WeakMethod.__init__