<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def diff_binding(self) -> int: """Return the difference betweens the binding levels of the current and the previous operator. """

        try:
            prev_op, prev_op_binding = self.nested_ops[-2]
        except IndexError:
            prev_op, prev_op_binding = None, 0
        try:
            curr_op, curr_op_binding = self.nested_ops[-1]
        except IndexError:
            curr_op, curr_op_binding = None, 0
        # special case
        if prev_op is ast.Pow and isinstance(curr_op, (ast.Invert, ast.USub)):
            return 1
        # print(prev_op, prev_op_binding, curr_op, curr_op_binding)
        return curr_op_binding - prev_op_binding