For Counter Variable

Joshua Landau joshua.landau.ws at gmail.com
Mon Sep 24 18:53:57 EDT 2012


On 24 September 2012 23:26, Dwight Hutto <dwightdhutto at gmail.com> wrote:

> On Mon, Sep 24, 2012 at 6:09 PM, Ethan Furman <ethan at stoneleaf.us> 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
>

This is not a criticism, but actual curiosity.

*How* would one implement this better, more simply (for the user, not the
implementator) or in a more readable manner?  Chose *any* one of those.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120924/0b738974/attachment.html>


More information about the Python-list mailing list