Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12397
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <t@jollybox.de> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.032 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; 'python,': 0.01; 'script,': 0.07; 'exceptions,': 0.09; 'library': 0.15; 'control-c': 0.16; 'russ': 0.16; 'simpler.': 0.16; 'wrote:': 0.16; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'correctly.': 0.24; 'code': 0.25; 'handled': 0.28; 'script': 0.29; 'usually': 0.32; 'it.': 0.33; 'to:addr:python-list': 0.33; 'done': 0.34; 'header:User-Agent:1': 0.34; 'rather': 0.35; 'external': 0.35; 'put': 0.37; 'but': 0.37; 'something': 0.37; 'two': 0.37; 'could': 0.38; 'subject:: ': 0.39; 'received:192': 0.39; 'e.g.': 0.39; 'ok,': 0.39; 'to:addr:python.org': 0.39; "it's": 0.40; 'more': 0.60; 'huge': 0.61; 'order': 0.62; 'procedure.': 0.67; 'received:62': 0.70; 'from:addr:t': 0.84 |
| Date | Mon, 29 Aug 2011 09:49:26 +0200 |
| From | Thomas Jollans <t@jollybox.de> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: killing a script |
| References | <22a0dae6-8a60-4e68-82a5-31a949bd69d5@y8g2000prd.googlegroups.com> <mailman.528.1314582745.27778.python-list@python.org> <e52d78f9-7adb-4046-9368-3d35c5b20d0b@m4g2000pri.googlegroups.com> <mailman.530.1314586278.27778.python-list@python.org> <fd1e808a-7bc1-49dc-8a6c-eb0ca144abce@x11g2000prb.googlegroups.com> |
| In-Reply-To | <fd1e808a-7bc1-49dc-8a6c-eb0ca144abce@x11g2000prb.googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| 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.540.1314604147.27778.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1314604147 news.xs4all.nl 2428 [2001:888:2000:d::a6]:59970 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:12397 |
Show key headers only | View raw
On 2011-08-29 05:08, Russ P. wrote: > Yes, but if I am not mistaken, that will require me to put a line or > two after each os.system call. That's almost like whack-a-mole at the > code level rather than the Control-C level. OK, not a huge deal for > one script, but I was hoping for something simpler. I was hoping I > could put one line at the top of the script and be done with it. It's perfectly normal error-handling procedure. In Python, errors are usually handled by exceptions, but if you embed a system that doesn't support exceptions, e.g. external processes or a C library via ctypes, you will of course have to write a little more code in order to handle errors correctly. T
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
killing a script "Russ P." <russ.paielli@gmail.com> - 2011-08-28 18:15 -0700
Re: killing a script MRAB <python@mrabarnett.plus.com> - 2011-08-29 02:52 +0100
Re: killing a script "Russ P." <russ.paielli@gmail.com> - 2011-08-28 19:41 -0700
Re: killing a script Chris Angelico <rosuav@gmail.com> - 2011-08-29 12:51 +1000
Re: killing a script "Russ P." <russ.paielli@gmail.com> - 2011-08-28 20:08 -0700
Re: killing a script Chris Rebert <clp2@rebertia.com> - 2011-08-28 20:16 -0700
Re: killing a script "Russ P." <russ.paielli@gmail.com> - 2011-08-28 20:22 -0700
Re: killing a script "Russ P." <russ.paielli@gmail.com> - 2011-08-29 14:26 -0700
Re: killing a script Thomas Jollans <t@jollybox.de> - 2011-08-29 09:49 +0200
Re: killing a script Arnaud Delobelle <arnodel@gmail.com> - 2011-08-29 23:53 +0100
Re: killing a script Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-08-30 14:13 +1000
Re: killing a script Hans Mulder <hansmu@xs4all.nl> - 2011-08-30 12:40 +0200
Re: killing a script Cameron Simpson <cs@zip.com.au> - 2011-09-09 10:03 +1000
Re: killing a script Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-09 19:07 +1000
Re: killing a script Hans Mulder <hansmu@xs4all.nl> - 2011-09-09 12:13 +0200
Re: killing a script Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-09 22:16 +1000
Re: killing a script Cameron Simpson <cs@zip.com.au> - 2011-09-10 08:29 +1000
Re: killing a script Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-10 11:25 +1000
Re: killing a script Chris Angelico <rosuav@gmail.com> - 2011-09-10 11:37 +1000
Re: killing a script Cameron Simpson <cs@zip.com.au> - 2011-09-10 18:49 +1000
Re: killing a script Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-11 15:08 +1000
Re: killing a script Nobody <nobody@nowhere.com> - 2011-09-10 10:47 +0100
Re: killing a script Paul Rubin <no.email@nospam.invalid> - 2011-08-28 19:53 -0700
Re: killing a script Nobody <nobody@nowhere.com> - 2011-08-29 07:52 +0100
csiph-web