'indent'ing Python in windows bat

Chris Rebert clp2 at rebertia.com
Tue Sep 18 00:22:19 EDT 2012


On Mon, Sep 17, 2012 at 8:28 PM, Dennis Lee Bieber
<wlfraed at ix.netcom.com> wrote:
> On Mon, 17 Sep 2012 21:08:32 -0400, David Smith <davids at invtools.com>
> declaimed the following in gmane.comp.python.general:
>
>>
>> How do I "indent" if I have something like:
>> if (sR=='Cope'): sys.exit(1) elif (sR=='Perform') sys.exit(2) else
>> sys.exit(3)
>>
>         If the sole purpose of the BAT file is to set return codes, I
> wouldn't bother using Python... Python is /not/ a shell language
> substitute

FWIW, it kinda was, for the Amoeba OS, originally:
http://docs.python.org/faq/general#why-was-python-created-in-the-first-place

Cheers,
Chris



More information about the Python-list mailing list