Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #72109
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.072 |
| X-Spam-Evidence | '*H*': 0.87; '*S*': 0.01; 'parameter': 0.09; 'subject:script': 0.09; 'suppress': 0.09; 'cc:addr:python-list': 0.11; 'foo"': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'command': 0.22; 'preferred': 0.22; 'shell': 0.22; 'cc:addr:python.org': 0.22; 'commands,': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'gives': 0.31; 'that.': 0.31; 'usually': 0.31; 'spam,': 0.31; 'subject:the': 0.34; 'common': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'subject:?': 0.36; 'pm,': 0.38; 'skip:p 20': 0.39; 'dave': 0.60; 'confirm': 0.64; 'action.': 0.84; 'commands.': 0.84; 'angel': 0.91; 'to:none': 0.92; 'technique': 0.93; 'subject:Check': 0.95 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=akxeRtCUf6rH5tZreyikUfC1V0v+Da1/FQycjlyGseo=; b=FCdB/07eveGdetwIZvqInKEEPvof5ADbLJ4bdJGd8yGtPELPOc47M1736WRSoKvOGm KiDoBSxcQAOo89n1uN2G1J8ccZPCDO45AbkAjS06MAzuP+Rsz9ZJeLzZIAKu2LLQac1y YWDeZiKIWrrx2Z3LpBVDHeJIPFczQteg/SrcixhJhqo+La1NxwaMd9UesRK0IcUJNzlW vh3iPFjv8GqE6tbT3BJUphZKebhPlXHmCM6szRfL5BfVsnq0umhenN2DDggR3yyto1+S CNM2w9UjiqWugkGzk+hjUgQYaY6erj3DoHX38hBWc3KdtNuFOK0uG6GL59bRiY6jp8ZX 6wbg== |
| MIME-Version | 1.0 |
| X-Received | by 10.58.74.164 with SMTP id u4mr6765vev.81.1401188924634; Tue, 27 May 2014 04:08:44 -0700 (PDT) |
| In-Reply-To | <lm1rg9$4rj$1@ger.gmane.org> |
| References | <CAG6fH=YuAYnkJHY1Az7sSsEhr++XbM4k=1+Vcs21LXV6Xuu=nw@mail.gmail.com> <CAPTjJmqLvLXHx9M47sEk1hjK9K+fdcrAy2ep4Uxhd1RUwE34Ew@mail.gmail.com> <lm1rg9$4rj$1@ger.gmane.org> |
| Date | Tue, 27 May 2014 21:08:44 +1000 |
| Subject | Re: Check to see if the script has been previously used? |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| 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 | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.10367.1401188932.18130.python-list@python.org> (permalink) |
| Lines | 11 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1401188932 news.xs4all.nl 2894 [2001:888:2000:d::a6]:46639 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:72109 |
Show key headers only | View raw
On Tue, May 27, 2014 at 9:05 PM, Dave Angel <davea@davea.name> wrote: > Preferred approach is usually to respond to one of the > conventional argv switches. And let the user decide. Yes, this is a technique I've used when doing up important (and dangerous) MUD commands. The command will be something like "unload foo" and it gives its first-time spam, or "unload confirm foo" to suppress it and go straight to the potentially-dangerous action. With shell commands, a -f or --force parameter would be common for that. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Check to see if the script has been previously used? Chris Angelico <rosuav@gmail.com> - 2014-05-27 21:08 +1000
csiph-web