Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #29408 > unrolled thread

Re: 'indent'ing Python in windows bat

Started byChris Rebert <clp2@rebertia.com>
First post2012-09-17 21:22 -0700
Last post2012-09-17 21:22 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: 'indent'ing Python in windows bat Chris Rebert <clp2@rebertia.com> - 2012-09-17 21:22 -0700

#29408 — Re: 'indent'ing Python in windows bat

FromChris Rebert <clp2@rebertia.com>
Date2012-09-17 21:22 -0700
SubjectRe: 'indent'ing Python in windows bat
Message-ID<mailman.856.1347942142.27098.python-list@python.org>
On Mon, Sep 17, 2012 at 8:28 PM, Dennis Lee Bieber
<wlfraed@ix.netcom.com> wrote:
> On Mon, 17 Sep 2012 21:08:32 -0400, David Smith <davids@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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web