RE: Newbie question involving buffered input

2006-09-01 Thread Caolan
Title: Re: Newbie question involving buffered input That makes sense I suppose - why is there a stdin.flush() method then? From: [EMAIL PROTECTED] on behalf of Jean-Paul CalderoneSent: Fri 9/1/2006 9:53 AMTo: python-list@python.orgSubject: Re: Newbie question involving buffered input

Re: Newbie question involving buffered input

2006-09-01 Thread Jean-Paul Calderone
On Fri, 1 Sep 2006 09:31:11 -0700, Caolan <[EMAIL PROTECTED]> wrote: >I am executing the code below on a Windows XP system and if I enter > 2 >characters it buffers the input and the call to sys.stdin.flush does not flush >the input, it remains buffered. You cannot flush input. The flush method

Newbie question involving buffered input

2006-09-01 Thread Caolan
I am executing the code below on a Windows XP system and if I enter > 2 characters it buffers the input and the call to sys.stdin.flush does not flush the input, it remains buffered.   What am I doing wrong here?   Thanks,   Caolan       try:    gooberselectX = sys.stdin.read(2)