Re: Is there any way this queue read can possibly block?

2009-05-02 Thread John Nagle
That wasn't the problem. An incoherent bug report from a user was the problem. John Nagle Carl Banks wrote: On Apr 30, 11:48 am, John Nagle wrote: def draininput(self) : # consume any queued input try: while True : ch = self.inqu

Re: Is there any way this queue read can possibly block?

2009-04-30 Thread Carl Banks
On Apr 30, 11:48 am, John Nagle wrote: > def draininput(self) :  # consume any queued input >      try: >          while True : >              ch = self.inqueue.get_nowait()     # get input, if any >      except Queue.Empty:                                # if empty >          return              

Is there any way this queue read can possibly block?

2009-04-30 Thread John Nagle
def draininput(self) : # consume any queued input try: while True : ch = self.inqueue.get_nowait() # get input, if any except Queue.Empty: # if empty return # done "self.inqueue" is a Queue object.