Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79257

Re: Flush stdin

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.066
X-Spam-Evidence '*H*': 0.87; '*S*': 0.01; 'cc:addr:python-list': 0.11; 'flush': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'stdout': 0.16; 'wrote:': 0.18; 'written': 0.21; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'unix': 0.29; 'message- id:@mail.gmail.com': 0.30; 'fri,': 0.33; 'could': 0.34; 'received:google.com': 0.35; 'pm,': 0.38; "you've": 0.63; 'account': 0.65; 'console,': 0.84; 'to:none': 0.92
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=yOgxJGX1FMEdd+/jXytV5/4p47i/pn/QSMp31MtaBOY=; b=sgN5+MwMx3v5zk3KgmFrbgpjf0NG/QeA8dD3h+jaZDykpWPfqHK6NMrCQSWz2PRM/n 0PQzBStBMcwPyVCjSy8Nm61K8KqCSdwhR2ZJYG4N4C2oMX3bvV2pisQdPezMJ+EYtuEP wnpS63nxouUFWmQTvgcg+DtvkxwFrZYRFMvAqUPh4NSf/Z+jwKySwZ+WIuepLM//wk2V w0XKVGqI3dIhsB9YZdlCqY0TgfFk5IE9gqGAgEM9BZHqeFVi/vKpsA72iyBpSs1QZBCl e4WEDUbivw+UII9cUeySyjXzGiKgQv+djoIpPPJAED+3IewlCGOQM5gbo6/CJAvP38E3 qmPg==
MIME-Version 1.0
X-Received by 10.107.151.65 with SMTP id z62mr13858228iod.24.1413613529800; Fri, 17 Oct 2014 23:25:29 -0700 (PDT)
In-Reply-To <CABcP1UeH9ft0j++HbUpHDDWz4i=7eJrDU=kVXFN6LPHT3oNE6Q@mail.gmail.com>
References <CABcP1UeH9ft0j++HbUpHDDWz4i=7eJrDU=kVXFN6LPHT3oNE6Q@mail.gmail.com>
Date Sat, 18 Oct 2014 17:25:29 +1100
Subject Re: Flush stdin
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14957.1413613539.18130.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1413613539 news.xs4all.nl 2959 [2001:888:2000:d::a6]:42836
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:79257

Show key headers only | View raw


On Fri, Oct 17, 2014 at 10:38 PM, Empty Account <emptya45@gmail.com> wrote:
> I will be using this script on Unix based systems and I wondered what
> approach I could use
> to flush stdin?

Why exactly do you need to flush stdin? If you've written a small
amount of data to the console, it's stdout that you need to flush.

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Flush stdin Chris Angelico <rosuav@gmail.com> - 2014-10-18 17:25 +1100

csiph-web