proposed PEP: iterator splicing
Sun Apr 15 09:51:57 CEST 2007
John Nagle <nagle at animats.com> writes:
> > Less clutter, and avoids yet another temp variable polluting the namespace.
> Are we in danger of running out of temp variables?
There is unfortunately no way to contain the scope of a loop index to the
inside of the loop. Therefore introducing more useless loop indexes creates
more scorekeeping work and bug attractants. Better to get rid of them.
More information about the Python-list