The Python Papers

The Python Papers

Share this post

The Python Papers
The Python Papers
Python 101 - Redirecting stdout
Copy link
Facebook
Email
Notes
More

Python 101 - Redirecting stdout

Mike Driscoll's avatar
Mike Driscoll
Dec 26, 2023
∙ Paid
7

Share this post

The Python Papers
The Python Papers
Python 101 - Redirecting stdout
Copy link
Facebook
Email
Notes
More
Share

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

  • …

Keep reading with a 7-day free trial

Subscribe to The Python Papers to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Mike Driscoll
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More