Re: print to screen and file with one print statement

2014-08-27 Thread Chris Angelico
On Thu, Aug 28, 2014 at 8:23 AM, KS wrote: > Can you please let me know where do I add flush(self) and get > sys.stdout.flush() to work? Check the dates. You're responding to a 2013 response to a 2003 post. If you have a question about something this old, it's probably best to start a new thread

Re: print to screen and file with one print statement

2014-08-27 Thread KS
Hi Mike/Ami, Can you please let me know where do I add flush(self) and get sys.stdout.flush() to work? Thanks, KS -- https://mail.python.org/mailman/listinfo/python-list

Re: print to screen and file with one print statement

2013-04-09 Thread amiwinter
On Thursday, February 13, 2003 2:51:02 PM UTC+2, Mike Müller wrote: > "Mark McEahern" wrote in message > news:... > > Same basic idea: > > > > #!/usr/bin/env python > > > > import sys > > > > class MyWriter: > > > > def __init__(self, stdout, filename): > > self.stdout = stdout >