Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8528
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <bahamutzero8825@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'exception,': 0.07; '(it': 0.09; 'exception:': 0.09; 'parsing': 0.09; 'exception': 0.12; 'am,': 0.13; 'received:209.85.214.174': 0.13; 'received:mail- iw0-f174.google.com': 0.13; 'wrote:': 0.15; 'documented.': 0.16; 'rachel': 0.16; 'subject:Trying': 0.16; 'def': 0.16; 'pointed': 0.22; 'header:In-Reply-To:1': 0.22; 'windows': 0.27; "i'm": 0.27; 'received:209.85.214': 0.28; "didn't": 0.29; 'skip:( 20': 0.30; 'thanks': 0.30; 'message-id:@gmail.com': 0.32; 'error': 0.33; 'header:User-Agent:1': 0.34; 'instead': 0.34; 'to:addr:python- list': 0.34; 'integer': 0.35; 'surprised': 0.35; 'trigger': 0.35; 'received:google.com': 0.37; 'but': 0.37; 'received:209.85': 0.38; 'another': 0.38; 'received:192': 0.38; 'subject:: ': 0.38; 'received:192.168.1': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'would': 0.40; 'or,': 0.40 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=lMMS5ky9Wpr6yIjIeoqzAPr55g23Yq71YYU5E7vfN7c=; b=vT1Tl1SqsJQMsUHGl7NxX/Timkk76EQ2UuWH+pp1/9zJwDhQL9CnNP3B0c23mCeZAj 2LSw4YLCxE1wrOr8mqL0146pbuRYLSFf2EhdRpICHVYdhxK/M3N4niO18A+OERYPd+up ee3eTLWEFqP7EcWOWv7B5YHjagYbXsYBC9S14= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=Yh7e6ncb+gTiY+0sYScgo4nDJE6ayEgANLWf35tgp37rmYxiRdDm8kNuqPHIwEFDN5 HjH/1atfK20ws7ryZ/dMhFY5Zp90HIi8cZpZY80yQw6Iz/lV84g6LfOc9nknK8oxtkZQ nVzdlbNzrpk5xvdN6koPt2Iz3kTHuNmbdiJoE= |
| Date | Tue, 28 Jun 2011 03:09:04 -0500 |
| From | Andrew Berg <bahamutzero8825@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 ThunderBrowse/3.3.5 |
| MIME-Version | 1.0 |
| To | "comp.lang.python" <python-list@python.org> |
| Subject | Re: Trying to chain processes together on a pipeline |
| References | <mailman.467.1309240659.1164.python-list@python.org> <iuc0oo$7dm$1@r03.glglgl.eu> |
| In-Reply-To | <iuc0oo$7dm$1@r03.glglgl.eu> |
| X-Enigmail-Version | 1.1.1 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| 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.473.1309248563.1164.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1309248563 news6.xs4all.nl 4352 [2001:888:2000:d::a6]:52326 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:8528 |
Show key headers only | View raw
On 2011.06.28 02:44 AM, Thomas Rachel wrote:
> The way you work with the exception is not the very best - instead of
> parsing the stringified exception, you better would trigger on
> exc.winerror (it is an integer with the error number).
>
> Or, even better, just pas the error information contained in the exception:
>
> def handle_winerr(exc):
> logger.critical('Could not execute %s: %s' %
> (queue[position].sox_exe, exc.strerror))
I didn't see winerror and strerror in the docs before, but another look
and they are indeed documented. I brought up Windows error codes before,
and I'm surprised no one pointed this out. Thanks for that.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Trying to chain processes together on a pipeline Andrew Berg <bahamutzero8825@gmail.com> - 2011-06-28 00:57 -0500
Re: Trying to chain processes together on a pipeline Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-06-28 09:44 +0200
Re: Trying to chain processes together on a pipeline Andrew Berg <bahamutzero8825@gmail.com> - 2011-06-28 03:09 -0500
csiph-web