Python 101 - Redirecting stdout
Redirecting stdout to something most developers will need to do at some point or other. It can be useful to redirect stdout to a file or to a file-like object. I have also redirected stdout to a text control in some of my desktop GUI projects. In this article we will look at the following:
Redirecting stdout to a file (simple)
The Shell redirection method
…


