More like a shell command.

Bill galaxyblue63 at
Wed Aug 6 16:38:29 CEST 2008

Is there anyway I can extend python to accept a command
which looks more like shell syntax than a function call.

I want to be able to do this:

    if blah :
        MyCommand  Arg1  Arg2

as opposed to this:

    if blah :

or this:

    if blah :
        x("MyCommand  Arg1  Arg2")

Of source, I would like to do this by writing a module (or through
some other run-time hook) as opposed to editing the Python source

Thanks in advance
(unless you are just a Python nut who is flaming to tell me that I
should not want this.  :-)  )


More information about the Python-list mailing list