Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'interpreter': 0.04; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'combination,': 0.16; 'iirc': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'situation.': 0.16; 'summarizes': 0.16; 'unusable.': 0.16; 'string': 0.17; 'wrote:': 0.17; 'bit': 0.21; 'supposed': 0.21; 'aspect': 0.22; 'stopping': 0.22; 'this:': 0.23; "i've": 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'wrote': 0.26; 'language.': 0.27; 'older': 0.27; 'header:X -Complaints-To:1': 0.28; '>>>>': 0.29; 'perl': 0.29; "i'm": 0.29; 'related': 0.30; 'code': 0.31; 'from:addr:yahoo.co.uk': 0.32; 'legacy': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'code:': 0.33; 'produced': 0.33; 'another': 0.33; 'something': 0.35; 'there': 0.35; 'received:org': 0.36; 'really': 0.36; 'but': 0.36; 'skip:{ 10': 0.36; 'should': 0.36; 'too': 0.36; 'unable': 0.36; 'previous': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'growing': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'release': 0.39; 'little': 0.39; 'header:Received:5': 0.40; 'you.': 0.61; 'first': 0.61; 'world': 0.63; 'times': 0.63; 'email addr:gmail.com': 0.63; 'more': 0.63; 'here': 0.65; 'learned': 0.65; 'subject:For': 0.75; 'topic,': 0.78; 'discovered': 0.83; 'illustrated': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: For Counter Variable Date: Tue, 25 Sep 2012 10:46:18 +0100 References: <10965867-a44f-4146-aea2-fd1a1e8f8e3b@googlegroups.com> <5060DA00.10801@stoneleaf.us> <50616157$0$29997$c3e8da3$5496439d@news.astraweb.com> <46c1b87a-7407-4c7e-9aee-0fe44ae3b07a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-20-3.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: <46c1b87a-7407-4c7e-9aee-0fe44ae3b07a@googlegroups.com> X-Antivirus: avast! (VPS 120924-1, 24/09/2012), Outbound message X-Antivirus-Status: Clean 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: 52 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348566306 news.xs4all.nl 6974 [2001:888:2000:d::a6]:59490 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30054 On 25/09/2012 10:32, wxjmfauth@gmail.com wrote: > I wrote my first program on a PDP-8. I discovered Python > at release 1.5.? > > Now years later... I find Python more and more unusable. Dementia is a growing problem for us older people :) > > As an exemple related to this topic, which summarizes a > little bit the situation. I just opened my interactive > interpreter and produced this: > >>>> for i in range(len(s)-1, -1,-1): > ... '{} {}'.format(i, s[i]) > ... > '2 c' > '1 b' > '0 a' > > I did it so many times with a reverse/enumerate combination, > I'm unable to do it again, I simply do not remember! Based on things I've read as I've never used it myself try using Perl as that should simplify things for you. > > > One another really annoying aspect of Python, illustrated > in my previous code: ''.format() . > Was it not supposed to be *the* new formating scheme? That might have been the original intention but it's not going to take over the world as there's too much legacy code using the C style % formatters. IIRC isn't there also something about string templates??? > > I'm toying more and more with the go language. I really > appreciate and rediscover the strictness I learned with > Pascal. So go and use go as nobody here is stopping you. > > jmf > -- Cheers. Mark Lawrence.