3 ms·
I like how delegates are easy in Python. del1 = someobject.some_method_without_parentheses del2 = someotherobject.other_method del2() del1() And the
by p0w3n3d 3y ago
I like how delegates are easy in Python.
del1 = someobject.some_method_without_parentheses
del2 = someotherobject.other_method
del2()
del1()
And the other way
del1 = class1.method
del2 = class2.other_method
del1(obj_of_class1)
del2(obj_of_class2)