On Aug 6, 9:38 am, Bill <[EMAIL PROTECTED]> wrote:
> 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 :
>
Maybe this module would work fine:
http://docs.python.org/lib/module-cmd.html
--
Angel
--
http://mail.python.org/mailman/listinfo/python-list
[Bill]
> 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 a general rule, if Python gives you a syntax error then you can't
achieve what you want
Hello,
> 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 :
> MyCommand(Arg1,Arg2)
>
> or this:
>
>
On Aug 6, 9:38 am, Bill <[EMAIL PROTECTED]> wrote:
> 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 :
>
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 :
MyCommand(Arg1,Arg2)
or this:
if blah :
x("MyCommand