MCPcopy Create free account
hub / github.com/SplootCode/splootcode / wrapStdout

Function wrapStdout

python/executor.py:966–971  ·  view source on GitHub ↗
(write)

Source from the content-addressed store, hash-verified

964
965
966def wrapStdout(write):
967 def f(s):
968 if capture:
969 capture.logSideEffect({"type": "stdout", "value": str(s)})
970 write(s)
971 return f
972
973if __name__ == "__main__":
974 import fakeprint # pylint: disable=import-error

Callers 15

testWhileLoopMethod · 0.90
testForLoopMethod · 0.90
testBreakMethod · 0.90
testHelloWorldMethod · 0.90
testIfElseMethod · 0.90
testElseMethod · 0.90
testListMethod · 0.90
testExpressionParsingMethod · 0.90

Calls

no outgoing calls

Tested by 15

testWhileLoopMethod · 0.72
testForLoopMethod · 0.72
testBreakMethod · 0.72
testHelloWorldMethod · 0.72
testIfElseMethod · 0.72
testElseMethod · 0.72
testListMethod · 0.72
testExpressionParsingMethod · 0.72