|
I don't think so. Not as a Python concept, but it looks sensible in
your example. However, why would enumerate produce a line number? How
would one know that it does? Ah, I see. enumerate produces a tuple
which has the index and a list. It appears the only place this can be
used is in a for? And, of course (devoid of an example): >>> help(enumerate) class enumerate(object) | enumerate(iterable) -> iterator for index, value of iterable | | Return an enumerate object. iterable must be an other object that supports | iteration. The enumerate object yields pairs containing a count (from | zero) and a value yielded by the iterable argument. enumerate is useful | for obtaining an indexed list: (0, seq[0]), (1, seq[1]), (2, seq[2]), ... ... Kent Johnson wrote: On Sun, Feb 15, 2009 at 2:47 PM, Wayne Watson <[email protected]> wrote: --
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
Shhhh, quiet. I'm thinking about filling this space.
Web Page: <www.speckledwithstars.net/> |
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
