Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'output': 0.04; 'things.': 0.05; 'missed': 0.09; 'blocking': 0.09; 'lawrence': 0.09; 'sep': 0.09; "wouldn't": 0.11; '*why*': 0.16; '24,': 0.16; 'did.': 0.16; 'for,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'appears': 0.18; 'input': 0.18; 'pending': 0.20; 'received:209.85.214.174': 0.21; 'header:In-Reply-To:1': 0.25; 'appear': 0.26; 'am,': 0.27; 'updating': 0.27; 'message-id:@mail.gmail.com': 0.27; '+0100,': 0.29; 'piece': 0.29; 'probably': 0.29; "i'm": 0.29; 'lists': 0.31; 'to:addr:python-list': 0.33; 'everyone': 0.33; 'received:google.com': 0.34; 'clear': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'depends': 0.36; 'one,': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'easy': 0.60; 'back': 0.62; 'card': 0.62; 'information': 0.63; 'more': 0.63; 'square': 0.75; 'flushing': 0.84; 'horror,': 0.84; 'subject:kind': 0.84; 'xmas': 0.84; 'birthday': 0.91; 'dennis': 0.91; 'try.': 0.91 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:to :content-type; bh=Ujp1Lj2TMXSREje7M3gD3GcwfzUzOK7ZmY+Rpdk8H0k=; b=yq5C/QuOxICOUouqigeIqm/zSA4R/fS0P01QyRKqlZYPHuh6d9/kT7S51H8XXjQLO2 FAkNEYo+YY7dIclcfJOK3e8HDUV+FM0LWSLHZClotY+pZnli96YeuhkJzY3gTMo21ZgB 2RK/pVnHPUIaCD2oq91A5mx4Zv0yj4CxVK53xKnusoBNmjmdt8L5pyZfrNeBy/ndMhzh nlwIMW3zgK25sofnWZH1qmAtMni5t9PlmCopAhywTidqcV4HoGnyR682en06gru1gbup SfA32kPBX3so6c9xZttxyTm+Z7lEBikzn++lPpl+wwyyc3ZcwHAjyubJyHUjn/R7sNBB bR/A== MIME-Version: 1.0 In-Reply-To: References: <0be9b4c2-b661-4709-ba8f-40a6f78ad634@googlegroups.com> <593f9c45-9150-4d37-9c9c-e3cd66ed2d8e@googlegroups.com> Date: Mon, 24 Sep 2012 15:14:16 +1000 Subject: Re: Seome kind of unblocking input From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348463659 news.xs4all.nl 6892 [2001:888:2000:d::a6]:57909 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29895 On Mon, Sep 24, 2012 at 3:50 AM, Dennis Lee Bieber wrote: > On Sun, 23 Sep 2012 18:13:57 +0100, Mark Lawrence > declaimed the following in > gmane.comp.python.general: > >> On 23/09/2012 16:49, Ramchandra Apte wrote: > >> > You can clear the buffer by calling file.flush() >> > >> >> Shock, horror, probe, well I never did. I'm sure that everyone is >> updating their Xmas and birthday card lists to ensure that you're not >> missed out having furnished a piece of information that doubtless not >> one other person on this group knew. > > It probably wouldn't have helped either... The OP was looking for, > as I recall, some means by which a pending input would not block other > output on a console... So what use is flushing a buffer? It all depends on *why* pending input appears to be blocking other output. I say "appears to be" because buffered output can indeed appear to be blocked, but so can other things. Flushing output is an easy thing to try. If it fails, back to square one, but with more knowledge. ChrisA