MCPcopy
hub / github.com/pallets/werkzeug / dump

Function dump

src/werkzeug/debug/repr.py:43–52  ·  view source on GitHub ↗

Print the object details to stdout._write (for the interactive console of the web debugger.

(obj: object = missing)

Source from the content-addressed store, hash-verified

41
42
43def dump(obj: object = missing) -> None:
44 """Print the object details to stdout._write (for the interactive
45 console of the web debugger.
46 """
47 gen = DebugReprGenerator()
48 if obj is missing:
49 rv = gen.dump_locals(sys._getframe(1).f_locals)
50 else:
51 rv = gen.dump_object(obj)
52 sys.stdout._write(rv) # type: ignore
53
54
55class _Helper:

Callers 1

test_debug_dumpMethod · 0.90

Calls 4

dump_localsMethod · 0.95
dump_objectMethod · 0.95
DebugReprGeneratorClass · 0.85
_writeMethod · 0.80

Tested by 1

test_debug_dumpMethod · 0.72