Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'responding': 0.07; 'subject:file': 0.07; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'quoted': 0.16; 'subject:screen': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'thu,': 0.19; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'text.': 0.24; "haven't": 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'post.': 0.31; 'probably': 0.32; 'subject:with': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'add': 0.35; 'subject:one': 0.36; 'work?': 0.38; 'even': 0.60; 'new': 0.61; "you're": 0.61; 'here': 0.66; 'obvious': 0.74; 'old,': 0.85; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=XlYSDMXD5oE+G+N8CMBzb703RHxQKLqWiYxJo+qSKao=; b=aw58WD1b+i1+z2nRaYuJluHnaylCGbdGIm5qwp1ynjKZxLNpzpqWSzjQ+1nQbLRs6g 0+PJcwVe22xi+NeUyhv9c2jk1fX5oKrgZbC8JplwJy10hti9qK61d/QdNbgcxnrHOPyF 2tAkBH/N+3k2mxLNnaC6G7bl76f6S7jmiEq8RDfyMwlewF1oMkEbNkncBiKDhKLEu12H CiRMI0tg6bvmaNNXEfa/wCwJ2dIadYfsilJ4oNZFd/u3Tm0S6aZoSRq59WZW9RxLo4tA umph/m4OQk7Cuo6ZGwf/wcKGvxBHfe4Y9DjMXqLYSxkn+cPPeMzpLHZM55A1gtS4wYx2 mbSw== MIME-Version: 1.0 X-Received: by 10.42.216.135 with SMTP id hi7mr1042655icb.12.1409179744336; Wed, 27 Aug 2014 15:49:04 -0700 (PDT) In-Reply-To: <56d18a11-6744-46e3-b8bc-69a200aeb7a7@googlegroups.com> References: <7049ba55.0302130451.7b9e2f4e@posting.google.com> <7a819c41-a8fc-4f06-97b5-f0f1129bc9c3@googlegroups.com> <56d18a11-6744-46e3-b8bc-69a200aeb7a7@googlegroups.com> Date: Thu, 28 Aug 2014 08:49:04 +1000 Subject: Re: print to screen and file with one print statement From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1409179753 news.xs4all.nl 2853 [2001:888:2000:d::a6]:44170 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77172 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. Also, please avoid Google Groups, unless you're prepared to fix its problems... like the horribly obvious one here that you haven't quoted even an iota from the original text. ChrisA