Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'output': 0.04; 'think,': 0.07; 'received:mail-vb0-f46.google.com': 0.09; 'sep': 0.09; 'cc:addr:python-list': 0.10; '24,': 0.16; 'mon,': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'received:209.85.212.46': 0.18; 'simpler': 0.22; 'cc:2**0': 0.23; 'statement': 0.23; "i've": 0.23; 'seems': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'functions.': 0.27; 'timely': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'request,': 0.29; 'usually': 0.30; 'basic': 0.30; 'function': 0.30; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; 'anything': 0.36; 'should': 0.36; 'too': 0.36; 'received:209': 0.37; 'well.': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; 'back': 0.62; 'forward': 0.66; 'day': 0.73; 'subject:For': 0.75; 'furman': 0.84; 'ethan': 0.91; 'obvious,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=h/PvsQ6nWK6LUgxYEcXdY9n6QsJnbj6itXYfO082rho=; b=eli62lX+pnm10ryvn0BYDT4ptD6gM9PrGQ5ZEcQOtmbRk75OdMbH+nEtpa6kHOkb8t CEn6tlNOPVsDwdjIjmqY7ocnrVQRXPA1SpWuy4WZCqfAiRheefTW3/mi1MnheSYDIVt6 aHMp9wItv80MAzXyDodCH7wVxpiegtiOASSkcb36Oo+/E06D0AHI1vWfYw4GU8Yn1Iuw bnhAGSm/f/UGzy48fSJoN6lR/gmqzRoR/hDMaKAbaZPSHtR8oTPFWk9OQBHLo7w7aQ7T 3b2sSzizNm5z3AG9/dIB7bzsaDChG21K7noz/t5p1csOL92lzdIuyj2MzixWaynS2302 3g3w== MIME-Version: 1.0 In-Reply-To: <5060DA00.10801@stoneleaf.us> References: <10965867-a44f-4146-aea2-fd1a1e8f8e3b@googlegroups.com> <5060DA00.10801@stoneleaf.us> Date: Mon, 24 Sep 2012 18:26:38 -0400 Subject: Re: For Counter Variable From: Dwight Hutto To: Ethan Furman Content-Type: text/plain; charset=ISO-8859-1 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348525601 news.xs4all.nl 6885 [2001:888:2000:d::a6]:59061 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29943 On Mon, Sep 24, 2012 at 6:09 PM, Ethan Furman wrote: > jimbo1qaz wrote: >> >> On Sunday, September 23, 2012 9:36:19 AM UTC-7, jimbo1qaz wrote: >>> >>> Am I missing something obvious, or do I have to manually put in a counter >>> in the for loops? That's a very basic request, but I couldn't find anything >>> in the documentation. >> >> >> Ya, they should really give a better way, but for now, enumerate works >> pretty well. > > > ROFLOL!! > > I look forward to the day when you look back on that statement and think, > "Wow, I've come a long way!" > It's a function usage. Not to be too serious, there are usually simpler solutions, and built in functions. But you usually sticks with what works, and seems timely in return of data output -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com