Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29400
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <davids@invtools.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'elif': 0.04; 'essentially': 0.04; 'subject:Python': 0.05; 'newbie': 0.05; 'python': 0.09; 'sys.exit(2)': 0.09; '"import': 0.16; '"syntax': 0.16; 'subject:windows': 0.16; 'sys.exit(1)': 0.16; 'windows': 0.19; 'received:209.85.214.174': 0.21; 'help.': 0.22; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'converting': 0.27; 'lines': 0.28; 'archives': 0.29; 'words': 0.29; "i'm": 0.29; 'like:': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:192.168.0': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'method': 0.36; 'thank': 0.36; 'received:209': 0.37; 'files': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'received:192': 0.39; 'hello,': 0.39; 'little': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'most': 0.61; 'sole': 0.75 |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=OCxSEJpn8NiU0e3RK1YCUziY9XCsBAv/1HAEGxObdKQ=; b=mkBcR0KVgAvUJB/uW3NblGOsXJVl/ppyiCosqmFUxPSMbYRjsg6cbXdtDOC0vzbgGO wtQbGWLj+VCYXQnH2TsOGxHSh1yTq/34d/pa9hLvWaAOJOYcLpdXxb9rlrGx7YvvLJ5T Pu4fH/AKvu3zf5I7GAEYCqmdkU3HHyOQcSFwh4vysJ36W9gbO+z9edAXyo2wd9xvCOrW Z+W0iHalUiMYf5nxzUhmOkg1ZBU4cLMgB6Md3Dvr9WPJALxadXbbIRPbQ1O6nKlMlNqo sCbaRVXAmop6xBOh1fcq3fudSrjbi9XQX3+N7hreLbHFNAXf0Zti0l7APCUHQ+oCDtDT vbVw== |
| Date | Mon, 17 Sep 2012 21:08:32 -0400 |
| From | David Smith <davids@invtools.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | 'indent'ing Python in windows bat |
| References | <mailman.3021.1347928001.27097.python-list@python.org> |
| In-Reply-To | <mailman.3021.1347928001.27097.python-list@python.org> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gm-Message-State | ALoCoQn2cHqe67gT4PiPgjgrxSFE7XcDUfanVIvYmbLhr3DWnNQd/mSHSzj30+4ToMqHQ+L9SsfA |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.851.1347930520.27098.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1347930520 news.xs4all.nl 6854 [2001:888:2000:d::a6]:40208 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:29400 |
Show key headers only | View raw
Hello, I'm essentially a newbie in Python. My problem in searching the archives is not knowing what words to use to ask. I'm converting windows bat files little by little to Python 3 as I find time and learn Python. The most efficient method for some lines is to call Python like: python -c "import sys; sys.exit(3)" 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) My sole result in many attempts is "Syntax Error." Thank you for any help.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
'indent'ing Python in windows bat David Smith <davids@invtools.com> - 2012-09-17 21:08 -0400 Re: 'indent'ing Python in windows bat Tim Roberts <timr@probo.com> - 2012-09-17 20:59 -0700
csiph-web