MCPcopy Index your code
hub / github.com/reactive-python/reactpy / capture_print

Function capture_print

docs/docs_app/examples.py:87–90  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

85 print_buffer = _PrintBuffer()
86
87 def capture_print(*args, **kwargs):
88 buffer = StringIO()
89 print(*args, file=buffer, **kwargs)
90 print_buffer.write(buffer.getvalue())
91
92 captured_component_constructor = None
93

Callers

nothing calls this directly

Calls 2

writeMethod · 0.80
getvalueMethod · 0.80

Tested by

no test coverage detected