def _constructMethod(cls, name, self):
 func = cls.__dict__[name]
 if _PY3:
  return _MethodType(func, self)
 return _MethodType(func, self, cls)

def _constructMethod ( cls , name , self ) : func = cls . __dict__ [ name ] if _PY3 : return _MethodType ( func , self ) return _MethodType ( func , self , cls )
construct a bound method .