My python 3 doodling went like this:
import io, sys
sys.stdout = io.StringIO()
# no more responses to python terminal funnily enough
My question is how to reattach so when I pass in 1+1
for example it'll return with 2
to the console?
This is in the python interpreter on 32-bit python running on windows 7 64 bit.
You're looking for
sys.__stdout__
: