Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.05; '"""': 0.05; 'scripts': 0.09; 'python': 0.09; 'called.': 0.09; 'way:': 0.09; 'multitude': 0.16; 'subject:windows': 0.16; 'wrote:': 0.17; 'module': 0.19; 'trying': 0.21; 'thanks.': 0.21; 'command': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'lines': 0.28; 'all.': 0.28; 'mini': 0.29; 'class': 0.29; 'file': 0.32; 'could': 0.32; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'received:192.168.0': 0.35; 'too.': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'useful': 0.36; "i'll": 0.36; 'skip:p 20': 0.36; 'drop': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'skip:" 10': 0.40; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'back': 0.62; 'thomas': 0.62; 'love': 0.63; 'realized': 0.71; 'discovered': 0.83; 'high,': 0.84; 'rachel': 0.84; 'dozens': 0.91; 'not:': 0.93; 'wholesale': 0.97 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=jPsQ8LhgDf/XmXF5RRVopvnteEvH89d7cUiy9tRahbk=; b=o5Fs+zEHcvL2FlrpbeWdcKXuuWEKxCRyu9u02jyk80WT+9I7CcsnAXPJn0Or2pL3Zq IRGJNHP/BkdEX2KKxhZI6bbTKnYmZkrDVA9W7TF1vmPwCfC397PTFEVB56jIiiEEGdgw brEF2a7vshvg230NKcwJP5bCKNCAk+XtA/kW3z4Rm+q4KqYhNkbKn7opyhfaROfwO3Aw L/qdl/Mup/D5ScfMmrG00eWEsSoGFO0LNICuSLWDy7Yzp77npQlOdFgy6ae3KE31EtK5 wMbWqVSMj+/Zac5MELYyT2W4jkISQc/rECoyDsooZukpKN0TAzMaff6D9bUutWHp3PwK H0RQ== Date: Wed, 19 Sep 2012 08:27:20 -0400 From: David Smith 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: Re: Re: 'indent'ing Python in windows bat References: <5057C990.8080809@invtools.com> <505803A9.4000409@davea.name> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkw6j10t+zoumfPD7JLeQ5/BY0z8oiBRjgXA7qACjUGErYATpmaAOoQqv3Uv1ww0I6CrXng 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: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348057641 news.xs4all.nl 6979 [2001:888:2000:d::a6]:33935 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29486 On 2012-09-19 05:22, Thomas Rachel wrote: > Am 18.09.2012 15:03 schrieb David Smith: > >> I COULD break down each batch file and write dozens of mini python >> scripts to be called. I already have a few, too. Efficiency? Speed is >> bad, but these are bat files, after all. The cost of trying to work with >> a multitude of small files is high, though, and I realized I had better >> go to a mix. > > In order to achieve this, it might be very useful to either have a > module for each (bigger) part to be achieved which you can call with ... > Or you have one big "interpreter" which works this way: > > class Cmd(object): > """ > Command collector > """ ... ... > > This is suitable for many small things and can be used this way: ... > Thomas Thomas, Beautiful. Gotta love it. I'll see if I can get the "interpreter" going. I particularly like it because I will be able to copy and paste wholesale when I stitch the final product back together again. Many thanks. Going back to the one-liner, I discovered the following individual lines work: print('hi') if 1: print('hi') print('hi');print('hi2') if 1: print('hi');print('hi2') but not: print('hi');if 1: print('hi') Chokes on the 'if'. On the surface, this is not consistent. I'll drop the one-liners for now since I have something that I can work with as I learn to wrestle with Python. thanks again.