Is the behavior expected?

Michele Simionato michele.simionato at
Thu Nov 27 10:21:39 CET 2008

On Nov 27, 10:11 am, Lawrence D'Oliveiro <l... at geek-
central.gen.new_zealand> wrote:
> Michele Simionato wrote:
> > Guido and the Common Lisp implementors are happy with mutating the loop
> > index. I myself prefer the functional way.
> I'd agree with you, except Python doesn't provide any way to create user-defined constants, so constant loop indices have no precedent.

I do not understand if I should interpret your sentence as sarcasm or
Looping without mutating the loop index is perfectly possible. For
look at the first paragraph of

More information about the Python-list mailing list