I have an unbound method as <unbound method foo.ops>
, i would like to use the same method with another class. take an example
class foo2(object):
pass
foo2.ops = foo.ops
however
obj = foo2()
obj.ops()
raises TypeError: unbound method ops() must be called with foo instance as first argument (got nothing instead)