Vladimir

65%
Flag icon
When real applications take over standard output, they often want to replace sys.stdout with another file-like object for a while, then switch back to the original. The contextlib.redirect_stdout context manager does exactly that: just pass it the file-like object that will stand in for sys.stdout.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview