MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / displayhook

Method displayhook

tools/python-3.11.9-amd64/Lib/pdb.py:422–428  ·  view source on GitHub ↗

Custom displayhook for the exec in default(), which prevents assignment of the _ variable in the builtins.

(self, obj)

Source from the content-addressed store, hash-verified

420 self.forget()
421
422 def displayhook(self, obj):
423 """Custom displayhook for the exec in default(), which prevents
424 assignment of the _ variable in the builtins.
425 """
426 # reproduce the behavior of the standard displayhook, not printing None
427 if obj is not None:
428 self.message(repr(obj))
429
430 def default(self, line):
431 if line[:1] == '!': line = line[1:]

Callers

nothing calls this directly

Calls 1

messageMethod · 0.95

Tested by

no test coverage detected