Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44291

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Neil Cerutti <neilc@norwich.edu>
Newsgroups comp.lang.python
Subject Re: Finding the source of an exception in a python multiprocessing program
Date 24 Apr 2013 20:31:39 GMT
Organization Norwich University
Lines 20
Message-ID <atqtpaFa3niU2@mid.individual.net> (permalink)
References <mailman.1032.1366835159.3114.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Trace individual.net nM8eVPYHWEb3KZDUsCsqbgYSn7e83pSmopKSchuyIzZfKn6szw
Cancel-Lock sha1:j/hOQIFbs5Kmwjcjr2tEL7bb4Zw=
User-Agent slrn/0.9.9p1/mm/ao (Win32)
Xref csiph.com comp.lang.python:44291

Show key headers only | View raw


On 2013-04-24, William Ray Wing <wrw@mac.com> 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
>         if self._success:
>             return self._value
>         else:
>             raise self._value

The code that's failing is in self.wait. Somewhere in there you
must be masking an exception and storing it in self._value
instead of letting it propogate and crash your program. This is
hiding the actual context.

-- 
Neil Cerutti

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Finding the source of an exception in a python multiprocessing program William Ray Wing <wrw@mac.com> - 2013-04-24 15:25 -0400
  Re: Finding the source of an exception in a python multiprocessing program Neil Cerutti <neilc@norwich.edu> - 2013-04-24 20:31 +0000
    Re: Finding the source of an exception in a python multiprocessing program William Ray Wing <wrw@mac.com> - 2013-04-24 17:09 -0400
      Re: Finding the source of an exception in a python multiprocessing program Neil Cerutti <neilc@norwich.edu> - 2013-04-25 12:37 +0000
    Re: Finding the source of an exception in a python multiprocessing program Dave Angel <davea@davea.name> - 2013-04-24 19:26 -0400
    Re: Finding the source of an exception in a python multiprocessing program Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-04-25 01:00 +0100
    Re: Finding the source of an exception in a python multiprocessing program Dave Angel <davea@davea.name> - 2013-04-24 20:11 -0400

csiph-web