Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29408
| References | <mailman.3021.1347928001.27097.python-list@python.org> <5057C990.8080809@invtools.com> <p3qf58d13gad4i98m2dnqcgp2ugplr2elg@invalid.netcom.com> |
|---|---|
| Date | 2012-09-17 21:22 -0700 |
| Subject | Re: 'indent'ing Python in windows bat |
| From | Chris Rebert <clp2@rebertia.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.856.1347942142.27098.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: 'indent'ing Python in windows bat Chris Rebert <clp2@rebertia.com> - 2012-09-17 21:22 -0700
csiph-web