<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def do_p(self, arg):
 """p expression Print the value of the expression. """

        try:
            self.message(bdb.safe_repr(self._getval(arg)))
        except Exception:
            pass