Re: Seome kind of unblocking input

2012-09-25 Thread janis . judvaitis
Thanks for reply's. I'll be looking into threading, it seems like right way to go. btw. Why Python developers don't make a wrapper for input() with callback function using threads, so people can easily use nonblocking input? -- http://mail.python.org/mailman/listinfo/python-list

Re: Seome kind of unblocking input

2012-09-23 Thread Ramchandra Apte
On Sunday, 23 September 2012 23:20:37 UTC+5:30, 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

Re: Seome kind of unblocking input

2012-09-23 Thread Chris Angelico
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

Re: Seome kind of unblocking input

2012-09-23 Thread Mark Lawrence
On 23/09/2012 16:49, Ramchandra Apte wrote: On Saturday, 22 September 2012 01:24:46 UTC+5:30, Dennis Lee Bieber wrote: On Fri, 21 Sep 2012 02:13:28 -0700 (PDT), janis.judvai...@gmail.com declaimed the following in gmane.comp.python.general: Since I'm using threads and pipes everything work

Re: Seome kind of unblocking input

2012-09-23 Thread Ramchandra Apte
On Saturday, 22 September 2012 01:24:46 UTC+5:30, Dennis Lee Bieber wrote: > On Fri, 21 Sep 2012 02:13:28 -0700 (PDT), janis.judvai...@gmail.com > > declaimed the following in gmane.comp.python.general: > > > > > Since I'm using threads and pipes everything works ok, except that when i > > ca

Seome kind of unblocking input

2012-09-21 Thread janis . judvaitis
Hello! I'm building small console like program for embedded system control over serial port. Naturally I need to be able to recieve commands from user and print reply's from embedded device. Since I'm using threads and pipes everything works ok, except that when i call input() there is no way