Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'else:': 0.03; 'failing': 0.07; 'get(self,': 0.09; 'hiding': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; '24,': 0.16; 'letting': 0.16; 'received:mac.com': 0.16; 'storing': 0.16; 'subject: \n ': 0.16; 'subject:exception': 0.16; 'subject:program': 0.16; 'subject:skip:m 10': 0.16; 'wing': 0.16; 'subject:python': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'module': 0.19; 'received:10.0.1': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'error': 0.23; 'module,': 0.24; 'sorry,': 0.24; 'cc:no real name:2**0': 0.24; 'somewhere': 0.26; 'function': 0.29; 'raise': 0.29; 'thus': 0.29; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.31; 'context.': 0.31; 'crash': 0.31; 'ray': 0.31; 'routine': 0.31; 'class': 0.32; 'url:python': 0.33; 'actual': 0.34; 'subject:the': 0.34; 'there': 0.35; 'library.': 0.36; 'url:listinfo': 0.36; 'charset:us-ascii': 0.36; 'received:10.0': 0.36; 'url:org': 0.36; 'received:10': 0.37; 'received:17': 0.38; 'pm,': 0.38; 'url:mail': 0.40; 'you.': 0.62; 'william': 0.81; 'header:In-reply-to:1': 0.84; 'subject:source': 0.84; '2013,': 0.91 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8626,1.0.431,0.0.0000 definitions=2013-04-24_08:2013-04-24, 2013-04-24, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1302030000 definitions=main-1304240191 Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: Finding the source of an exception in a python multiprocessing program From: William Ray Wing In-reply-to: Date: Wed, 24 Apr 2013 17:09:20 -0400 Content-transfer-encoding: quoted-printable References: To: Neil Cerutti X-Mailer: Apple Mail (2.1503) Cc: python-list@python.org, William Ray Wing X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366841384 news.xs4all.nl 15945 [2001:888:2000:d::a6]:33888 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44295 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=3DNone) on the line after the final else: >>=20 >> def get(self, timeout=3DNone): >> self.wait(timeout) >> if not self._ready: >> raise TimeoutError >> if self._success: >> return self._value >> else: >> raise self._value >=20 > 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. >=20 > --=20 > Neil Cerutti > --=20 > http://mail.python.org/mailman/listinfo/python-list I'm sorry, I'm not following you. The "get" routine (and thus = self.wait) is part of the "pool" module in the Python multiprocessing = library. None of my code has a class or function named "get". -Bill