Check for method
The equivalent of PHP's method_exists. See this stackoverflow
invert_op = getattr(self, "invert_op", None)
if callable(invert_op):
invert_op(self.path.parent_op)The equivalent of PHP's method_exists. See this stackoverflow
invert_op = getattr(self, "invert_op", None)
if callable(invert_op):
invert_op(self.path.parent_op)