def get_meth_class_inst(obj):
    if PY2:
        # Python 2
        return obj.im_self
    else:
        # Python 3
        return obj.__self__
Return method class instance
dataset/ETHPy150Open winpython/winpython/winpython/py3compat.py/get_meth_class_inst