Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22577
| References | (3 earlier) <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 | 2012-04-03 17:12 +1000 |
| Subject | Re: Number of languages known [was Re: Python is readable] - somewhat OT |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1257.1333437184.3037.python-list@python.org> (permalink) |
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