Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'elif': 0.04; 'subject:Python': 0.05; 'python': 0.09; 'received:mail- vb0-f46.google.com': 0.09; 'sep': 0.09; 'sys.exit(2)': 0.09; 'cc:addr:python-list': 0.10; "wouldn't": 0.11; 'language': 0.14; 'subject:windows': 0.16; 'substitute': 0.16; 'sys.exit(1)': 0.16; 'url:faq': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'shell': 0.18; 'received:209.85.212.46': 0.18; 'os,': 0.22; 'cheers,': 0.23; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'chris': 0.28; 'url:python': 0.32; 'file': 0.32; 'like:': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'url:org': 0.36; 'received:209': 0.37; 'url:docs': 0.38; 'header:Received:5': 0.40; 'smith': 0.71; 'sole': 0.75; 'sender:addr:chris': 0.84; 'dennis': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=re3pTK7J5oXtOc6Jn2OB4y8ffaJZ0kO40h0P5QKBXkM=; b=Wtisy+NksUsKQn05qiVBX/fX6iIET+SUocuI2fGdUJ4sBqQutRNlHd9zWY+9g5kIfy HOjTMws0uKRT43IPMZbsaTQBI1gDc/NkmsvSb9o6hgemlFkLWfDTHcEL4Ns8IWRzF8qU xF4OJsmD0NxtPKaCrDNw6hiNN1Oha2MsuJl0Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=re3pTK7J5oXtOc6Jn2OB4y8ffaJZ0kO40h0P5QKBXkM=; b=VKe5yBRNaXHKzK15jHWXJqfCrzk1AYzkeVtCuLMkFVu9RfbnEQ7sL6ZQGmt+nvTDtU xR6VyB8LJTxGG5GP1qejghkolUtuPgzWEjnNKRBSb1/bAufChPQn6AWGydoPo5ODKA6V +2yOyVQYSrGKoBUSxfT3D9dyiDrEKK1DS9YcyB1i0b/y+jXCmGk/fK0pp1j75kbOm8Oy HKlObB1qbOGTUJc92N6UDsvd0e5jW+nTIvP2UgAMShk0yX1OiwbmCgHUiYrTvDJEXCpS ltf0Wa6Wg64YdFIAFPIQ+28OJwMl15MP+ukRXOfsDBpfL9cOr+Udx/mU0t4Nj2h2mo4f 9LZg== MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: References: <5057C990.8080809@invtools.com> Date: Mon, 17 Sep 2012 21:22:19 -0700 X-Google-Sender-Auth: fqdHRF6IWgSpwUPlbau6048UeMM Subject: Re: 'indent'ing Python in windows bat From: Chris Rebert To: Dennis Lee Bieber Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnEUO7rY+RR4gaoEzkpUusbEjFXT7WFDQV7INXKCPw3mAdC/2NwgayC7JVI/FvVW4bR/kE4 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347942142 news.xs4all.nl 6841 [2001:888:2000:d::a6]:53630 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29408 On Mon, Sep 17, 2012 at 8:28 PM, Dennis Lee Bieber wrote: > On Mon, 17 Sep 2012 21:08:32 -0400, David Smith > 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