Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8002
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <florencio.cano@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.015 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; '(especially': 0.07; 'python': 0.08; 'inclined': 0.09; 'myself,': 0.09; 'scripts': 0.10; 'nature,': 0.16; 'subject:scripts': 0.16; "system's": 0.16; 'try/except': 0.16; 'cc:addr:python-list': 0.17; 'always,': 0.19; 'header:In-Reply-To:1': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'code': 0.24; 'subject: -- ': 0.25; "i'm": 0.27; 'message-id:@mail.gmail.com': 0.28; 'keeps': 0.28; 'subject:?': 0.29; 'import': 0.29; 'alternatives': 0.29; 'toward': 0.29; 'implement': 0.30; 'cc:addr:python.org': 0.30; 'second': 0.30; 'someone': 0.33; 'else': 0.35; 'received:google.com': 0.37; 'two': 0.37; 'received:74.125': 0.38; 'but': 0.38; 'implemented': 0.38; 'subject:: ': 0.38; "i'd": 0.39; 'your': 0.60; 'involved.': 0.91; 'protection,': 0.91; 'to:none': 0.93; 'safe.': 0.95 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=RE9e+S5qXAUXA6A1rAzBvoyqnxj3bX3X9RHL5j2tXuA=; b=aAG8gX4BE1o+BIbMQE9cdkT2f04LXDhXCcoa8mbJt2rU7EWg6yWma1cYDbIBQgeIWB E2P99cMhYaI0q3zeEbpC7Jfl0GAfyL/a+2Ie1XI/1w1KwZKOcrHSC295YUQUOh+OzpW0 aH27n0hFpgZ7D+1g/WsYc63gwKhaXP4FigsCQ= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; b=YUkhKhnF0izktLmLL9Dr6bJkigSMObTcoUCGyghSA5Eb4e61RIvszr07686R4Dt3vd F0ytzVpQPxpbEL3k2J+zh2Guw6Js99t+vqMR2Se2m+a7kEm4s4CBy7T04gaf4yisQw3t HrjxWzRsgpf/54cvHBQ74n0i0j/r3v5xcs1qg= |
| MIME-Version | 1.0 |
| In-Reply-To | <BANLkTi=hHPo3ap9Cys40DX7wGdTEbn44OQ@mail.gmail.com> |
| References | <BANLkTi=t9cHtPN6QOa4eUWuraZToOZxnoQ@mail.gmail.com> <BANLkTi=hHPo3ap9Cys40DX7wGdTEbn44OQ@mail.gmail.com> |
| Date | Mon, 20 Jun 2011 08:21:31 +0200 |
| Subject | Re: running multiple scripts -- which way is more elegant? |
| From | Florencio Cano <florencio.cano@gmail.com> |
| Cc | python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| 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.172.1308550899.1164.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1308550899 news.xs4all.nl 49181 [::ffff:82.94.164.166]:57398 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:8002 |
Show key headers only | View raw
> I'd be inclined toward the second solution if I'm writing all the code > myself, but very definitely the first if someone else might write one > of the subscripts (especially so if this is going to be distributed > widely) - spawning a new process means that the system's isolation of > processes keeps your system safe. If you don't need that measure of > protection, I would still surround the import and check() call with > try/except and gracefully handle any errors. I'm with Chris, if the config_scripts are going to be implemented in Python always, the second solution is better for me as the operative system is less involved. But if you would like to have scripts with different nature, the first one is best. What about to implement the two alternatives depending on the config_script type?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: running multiple scripts -- which way is more elegant? Florencio Cano <florencio.cano@gmail.com> - 2011-06-20 08:21 +0200
csiph-web