I am calling a function that writes to STDOUT using print. How can I capture this in a variable?
Note that all this happens within the same process.
I am calling a function that writes to STDOUT using print. How can I capture this in a variable?
Note that all this happens within the same process.