Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22577
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'output': 0.04; 'handler': 0.05; 'subject:Python': 0.05; 'bash': 0.07; 'python': 0.09; 'cmd': 0.09; 'scripting': 0.09; 'targets': 0.09; 'wrap': 0.09; 'python?': 0.14; 'module': 0.15; '(and,': 0.16; 'amiga': 0.16; 'bash,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'instance:': 0.16; 'limiting': 0.16; 'shell"': 0.16; 'subprocess': 0.16; 'syntax,': 0.16; 'syntax.': 0.16; 'variations': 0.16; 'steve': 0.16; '(the': 0.16; '"you': 0.17; 'certainly': 0.17; 'library,': 0.17; 'thu,': 0.17; 'input': 0.18; 'string': 0.19; 'wrote:': 0.19; 'wrote': 0.20; 'import': 0.20; 'pipe': 0.21; 'header:In-Reply-To:1': 0.22; 'nearly': 0.23; 'player': 0.23; "python's": 0.23; "i'd": 0.23; 'programming': 0.23; 'message- id:@mail.gmail.com': 0.24; 'idea': 0.24; 'environment': 0.25; 'interface': 0.25; 'execution': 0.27; 'ibm': 0.27; 'script': 0.27; 'subject: [': 0.28; "i'm": 0.29; 'language.': 0.30; 'received:209.85.210.174': 0.30; 'received:mail- iy0-f174.google.com': 0.30; 'command': 0.30; 'chris': 0.31; "can't": 0.32; 'received:209.85': 0.32; 'received:google.com': 0.32; 'actual': 0.33; 'really': 0.33; 'received:209.85.210': 0.33; 'stuff': 0.34; 'so,': 0.34; 'am,': 0.34; 'cool': 0.34; 'to:addr :python-list': 0.35; 'received:209': 0.35; 'end': 0.35; 'text': 0.35; 'beyond': 0.36; 'execute': 0.36; 'but': 0.37; 'object': 0.37; 'subject:: ': 0.37; 'some': 0.39; 'too': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'become': 0.61; '2012': 0.62; 'different': 0.62; 'more': 0.63; 'box.': 0.65; 'compliant': 0.65; 'gone': 0.72; 'hey,': 0.72; 'ago,': 0.78; 'commands.': 0.84; 'hmm...': 0.84; 'model.': 0.84; 'dennis': 0.91; 'either:': 0.91 |
| 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:to :content-type:content-transfer-encoding; bh=uN6yq9hj4w2fUARL7RvaGWWPVopWlWciYgaL3EdQwmg=; b=lWLkKqXNIOHVWEO9G7lo/FNqXALlsy+ZJcnxf6psIrwJHiYo16M6q/Mmvz7zWM2ohK O340x7bkgwnDFkK/s5NVSuVrOZv6Sqw/YbG5gVzFqzKP/8MY2Cx0Xce73QjU7t7XsLZm hkMxNRJsPkUlRyUtw9n/GG86kgeuNuQIU7EKBTVV3Y260kMkj2WBW39FzrJ3TQbjOKKT JOH9kJ8DkdzHAkDRiUUjGVt5gDuwitgDU4mV/PtJgeXsv0XEobVHuMcRtOltmY2Mf9PQ eyI5z9ZJ9YTzH9T4Qaw53uJNUjQDtaDDsb+rfCy/e9QQuVrtluEV9a3kzYkjxZ6kcXh7 f7fw== |
| MIME-Version | 1.0 |
| In-Reply-To | <b039835a-9afc-4a34-8926-ffa44d88c56c@z3g2000pbn.googlegroups.com> |
| References | <CAPTjJmoEuHcUs5vkTNywfC6ZAwsKdVvs+8os40EJ4Oa1GPaBVw@mail.gmail.com> <B58DAE84-AA61-477A-B835-A62DA2224D8A@gmail.com> <CAPTjJmr3ybJUZFPyTWLysOE3YgWUjFZ8Bx6cjVjvNYVakXzM1Q@mail.gmail.com> <CAOFbRmLFrE_YiNu39xShCHnicoKVFYg8raZAGfHY9pC3HmOxVg@mail.gmail.com> <mailman.1116.1333029798.3037.python-list@python.org> <28983178-6745-438c-937d-cc6349aa18b1@t8g2000pbe.googlegroups.com> <mailman.1236.1333403443.3037.python-list@python.org> <b039835a-9afc-4a34-8926-ffa44d88c56c@z3g2000pbn.googlegroups.com> |
| Date | Tue, 3 Apr 2012 17:12:56 +1000 |
| Subject | Re: Number of languages known [was Re: Python is readable] - somewhat OT |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| 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.1257.1333437184.3037.python-list@python.org> (permalink) |
| Lines | 59 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1333437184 news.xs4all.nl 6879 [2001:888:2000:d::a6]:38797 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:22577 |
Show key headers only | View raw
On Tue, Apr 3, 2012 at 8:05 AM, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
> On Thu, 29 Mar 2012 08:48:53 -0700 (PDT), Steve Howell
> <showell30@yahoo.com> declaimed the following in
> gmane.comp.python.general:
>
> REXX is inhibited by the architectures to which it has been ported
> -- limiting the ADDRESS targets to variations of Python's os.system() or
> popen() calls; even the subprocess module can't get beyond the all or
> nothing execution model.
>
> Much different from the original IBM environment (and, biased, the
> Amiga implementation may have gone beyond the IBM one in capabilities)
> wherein compliant programs become the "command shell" for REXX command
> processing -- actual bidirectional interactive interprocess
> communication. Window's COM system offers some of that capability, but
> buried in a cryptic object programming system -- nothing like having a
> script sending the /same/ command that one would use in a text interface
> to the target program.
Some years ago, I wrote a MUD that used REXX as its scripting
language. (The server's still running, but not so much to be a MUD as
to be my administrative interface to that particular box. I'm like
that with MUDs.) I thought it was really cool to be able to simply put
a bare string and have that get sent to the player - for instance:
/* Command handler for some particular location in the MUD */
if arg(1)="foo" then do
"You begin to foo."
/* do some stuff */
"You finish fooing."
end
Having now built MUDs in Pike, I'm not so impressed with the syntax.
But hey, it's a completely different use of the ADDRESS command! :)
And of course, I can always use ADDRESS CMD "blah blah" to execute
commands.
On Tue, Apr 3, 2012 at 10:25 AM, Steve Howell <showell30@yahoo.com> wrote:
> On Apr 2, 2:50 pm, Chris Angelico <ros...@gmail.com> wrote:
>> Hmm... How do you pipe one command's output into another's input using
>> Python? It's not nearly as clean as it is in bash.
>
> For pipes, I'd still call out to bash. I know that's cheating, but
> the idea is that Python can wrap all the good parts of bash while
> still allowing you to use Python's more modern syntax, standard
> library, etc.
So, it's not that Python is a superset of bash, but that Python+bash
is a superset of bash. Well, that is certainly understandable. And
needn't be too onerous syntactically either:
from os import system as x
x('do_stuff')
ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Number of languages known [was Re: Python is readable] - somewhat OT Chris Angelico <rosuav@gmail.com> - 2012-03-30 01:03 +1100
Re: Number of languages known [was Re: Python is readable] - somewhat OT Steve Howell <showell30@yahoo.com> - 2012-03-29 08:48 -0700
Re: Number of languages known [was Re: Python is readable] - somewhat OT Chris Angelico <rosuav@gmail.com> - 2012-04-03 07:50 +1000
Re: Number of languages known [was Re: Python is readable] - somewhat OT Steve Howell <showell30@yahoo.com> - 2012-04-02 17:25 -0700
Re: Number of languages known [was Re: Python is readable] - somewhat OT Chris Angelico <rosuav@gmail.com> - 2012-04-03 17:12 +1000
Re: Number of languages known [was Re: Python is readable] - somewhat OT Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-04-02 18:05 -0400
csiph-web