Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29404
| References | <mailman.3021.1347928001.27097.python-list@python.org> <5057C990.8080809@invtools.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2012-09-17 21:01 -0600 |
| Subject | Re: 'indent'ing Python in windows bat |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.854.1347937306.27098.python-list@python.org> (permalink) |
On Mon, Sep 17, 2012 at 7:08 PM, David Smith <davids@invtools.com> wrote:
> 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)
How about:
if sR == 'Cope':
sys.exit(1)
elif sR == 'Perform':
sys.exit(2)
else:
sys.exit(3)
I don't really understand why you're trying to keep it all on one line.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: 'indent'ing Python in windows bat Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-17 21:01 -0600 Re: 'indent'ing Python in windows bat Roy Smith <roy@panix.com> - 2012-09-17 23:17 -0400 Re: 'indent'ing Python in windows bat Hans Mulder <hansmu@xs4all.nl> - 2012-09-19 09:53 +0200
csiph-web