Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44295
| 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 | <wrw@mac.com> |
| 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 <wrw@mac.com> |
| In-reply-to | <atqtpaFa3niU2@mid.individual.net> |
| Date | Wed, 24 Apr 2013 17:09:20 -0400 |
| Content-transfer-encoding | quoted-printable |
| References | <mailman.1032.1366835159.3114.python-list@python.org> <atqtpaFa3niU2@mid.individual.net> |
| To | Neil Cerutti <neilc@norwich.edu> |
| X-Mailer | Apple Mail (2.1503) |
| Cc | python-list@python.org, William Ray Wing <wrw@mac.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1034.1366841384.3114.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Apr 24, 2013, at 4:31 PM, Neil Cerutti <neilc@norwich.edu> wrote: > 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 > -- > 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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