MCPcopy Index your code
hub / github.com/python/cpython / do_p

Method do_p

Lib/pdb.py:2138–2146  ·  view source on GitHub ↗

p expression Print the value of the expression.

(self, arg)

Source from the content-addressed store, hash-verified

2136 return _rstr(f"*** repr({expr}) failed: {self._format_exc(e)} ***")
2137
2138 def do_p(self, arg):
2139 """p expression
2140
2141 Print the value of the expression.
2142 """
2143 if not arg:
2144 self._print_invalid_arg(arg)
2145 return
2146 self._msg_val_func(arg, repr)
2147
2148 def do_pp(self, arg):
2149 """pp expression

Callers

nothing calls this directly

Calls 2

_print_invalid_argMethod · 0.95
_msg_val_funcMethod · 0.95

Tested by

no test coverage detected