Re: Finding the source of an exception in a python multiprocessing program

2013-04-25 Thread Neil Cerutti
On 2013-04-24, William Ray Wing wrote: > On Apr 24, 2013, at 4:31 PM, Neil Cerutti wrote: > >> On 2013-04-24, William Ray Wing wrote: >>> When I look at the pool module, the error is occurring in >>> get(self, timeout=None) on the line after the final else: >>> >>>def get(self, timeout=None

Re: Finding the source of an exception in a python multiprocessing program

2013-04-24 Thread Dave Angel
On 04/24/2013 08:00 PM, Oscar Benjamin wrote: On 25 April 2013 00:26, Dave Angel wrote: On 04/24/2013 05:09 PM, William Ray Wing wrote: My question is why bother with multithreading? Why not just do these as separate processes? You said "they in no way interact with each other" and

Re: Finding the source of an exception in a python multiprocessing program

2013-04-24 Thread Oscar Benjamin
On 25 April 2013 00:26, Dave Angel wrote: > On 04/24/2013 05:09 PM, William Ray Wing wrote: >> >> On Apr 24, 2013, at 4:31 PM, Neil Cerutti wrote: >> >>> On 2013-04-24, William Ray Wing wrote: When I look at the pool module, the error is occurring in get(self, timeout=None) on the

Re: Finding the source of an exception in a python multiprocessing program

2013-04-24 Thread Dave Angel
On 04/24/2013 05:09 PM, William Ray Wing wrote: On Apr 24, 2013, at 4:31 PM, Neil Cerutti wrote: On 2013-04-24, William Ray Wing wrote: When I look at the pool module, the error is occurring in get(self, timeout=None) on the line after the final else: def get(self, timeout=None):

Re: Finding the source of an exception in a python multiprocessing program

2013-04-24 Thread MRAB
On 24/04/2013 20:25, William Ray Wing wrote: I run a bit of python code that monitors my connection to the greater Internet. It checks connectivity to the requested target IP addresses, logging both successes and failures, once every 15 seconds. I see failures quite regularly, predictably on

Re: Finding the source of an exception in a python multiprocessing program

2013-04-24 Thread Oscar Benjamin
On 24 April 2013 20:25, William Ray Wing wrote: > I run a bit of python code that monitors my connection to the greater > Internet. It checks connectivity to the requested target IP addresses, > logging both successes and failures, once every 15 seconds. I see failures > quite regularly, pred

Re: Finding the source of an exception in a python multiprocessing program

2013-04-24 Thread William Ray Wing
On Apr 24, 2013, at 4:31 PM, Neil Cerutti wrote: > On 2013-04-24, William Ray Wing wrote: >> When I look at the pool module, the error is occurring in >> get(self, timeout=None) on the line after the final else: >> >>def get(self, timeout=None): >>self.wait(timeout) >>if not

Re: Finding the source of an exception in a python multiprocessing program

2013-04-24 Thread Neil Cerutti
On 2013-04-24, William Ray Wing wrote: > When I look at the pool module, the error is occurring in > get(self, timeout=None) on the line after the final else: > > def get(self, timeout=None): > self.wait(timeout) > if not self._ready: > raise TimeoutError >

Finding the source of an exception in a python multiprocessing program

2013-04-24 Thread William Ray Wing
I run a bit of python code that monitors my connection to the greater Internet. It checks connectivity to the requested target IP addresses, logging both successes and failures, once every 15 seconds. I see failures quite regularly, predictably on Sunday nights after midnight when various netw