proposed PEP: iterator splicing
Paul Rubin
http
Sun Apr 15 03:51:57 EDT 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
mailing list