Python Forum
class that Redirects text from stdio to file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
class that Redirects text from stdio to file
#2
What are your thoughts on making it a context manager so that it can be used in a with block? Also, you don't necessarily need to store the previous stdout yourself, unless you want to support really unusual use cases.


Messages In This Thread
RE: class that Redirects text from stdio to file - by micseydel - Sep-29-2016, 02:31 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020