Sep-29-2016, 02:31 PM
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.
class that Redirects text from stdio to file
|
Sep-29-2016, 02:31 PM
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 |
class that Redirects text from stdio to file - by Larz60+ - Sep-29-2016, 10:44 AM
RE: class that Redirects text from stdio to file - by micseydel - Sep-29-2016, 02:31 PM
RE: class that Redirects text from stdio to file - by nilamo - Sep-29-2016, 02:59 PM
RE: class that Redirects text from stdio to file - by micseydel - Sep-29-2016, 03:46 PM
RE: class that Redirects text from stdio to file - by Larz60+ - Sep-29-2016, 06:21 PM
RE: class that Redirects text from stdio to file - by Skaperen - Sep-30-2016, 04:24 AM
|