code: def eval_condition(self, event):
          
          condition = self.get_condition()
          if condition is True:   # shortcut for unconditional breakpoints
              return True
          if callable(condition):
              try:
                  return bool( condition(event) )
              except Exception:
                  e = sys.exc_info()[1]
                  msg = ("Breakpoint condition callback %r"
                         " raised an exception: %s")
                  msg = msg % (condition, traceback.format_exc(e))
                  warnings.warn(msg, BreakpointCallbackWarning)
                  return False
          return bool( condition )
docs: Evaluates the breakpoint condition, if any was set.
  
          @type  event: L{Event}
          @param event: Debug event triggered by the breakpoint.
  
          @rtype:  bool
          @return: C{True} to dispatch the event, C{False} otherwise.