Re: Way to unblock sys.stdin.readline() call

2008-06-22 Thread joamag
On Jun 21, 11:34 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > joamag wrote: > > Is there any possible way to unblock the sys.stdin.readline() call > > from a different thread. > > If you want the thread to do something 'else' when no input is > available, would this work?  Put readline in a thread

Re: Way to unblock sys.stdin.readline() call

2008-06-21 Thread Terry Reedy
joamag wrote: Is there any possible way to unblock the sys.stdin.readline() call from a different thread. If you want the thread to do something 'else' when no input is available, would this work? Put readline in a thread that puts lines in a q=queue.Quese(). Then try: l=q.ge_nowait

Re: Way to unblock sys.stdin.readline() call

2008-06-21 Thread Jean-Paul Calderone
On Sat, 21 Jun 2008 12:35:02 -0700 (PDT), joamag <[EMAIL PROTECTED]> wrote: On Jun 21, 4:46 pm, Cédric Lucantis <[EMAIL PROTECTED]> wrote: Le Saturday 21 June 2008 15:26:53 joamag, vous avez écrit : > HI, > Is there any possible way to unblock the sys.stdin.readline() call > from a different t

Re: Way to unblock sys.stdin.readline() call

2008-06-21 Thread joamag
On Jun 21, 4:46 pm, Cédric Lucantis <[EMAIL PROTECTED]> wrote: > Le Saturday 21 June 2008 15:26:53 joamag, vous avez écrit : > > > HI, > > > Is there any possible way to unblock the sys.stdin.readline() call > > from a different thread. > > Something like sys.stdin.write() but that would actually w

Re: Way to unblock sys.stdin.readline() call

2008-06-21 Thread Cédric Lucantis
Le Saturday 21 June 2008 15:26:53 joamag, vous avez écrit : > HI, > > Is there any possible way to unblock the sys.stdin.readline() call > from a different thread. > Something like sys.stdin.write() but that would actually work ... > something to put characters in the stdin... > Do you mean settin

Way to unblock sys.stdin.readline() call

2008-06-21 Thread joamag
HI, Is there any possible way to unblock the sys.stdin.readline() call from a different thread. Something like sys.stdin.write() but that would actually work ... something to put characters in the stdin... Thanks in advance, João -- http://mail.python.org/mailman/listinfo/python-list