Can I change the for iteraotr variable in a loop?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Can I change the for iteraotr variable in a loop?
- From: Xavier Wang <weasley.wx@...>
- Date: 2012年5月16日 15:12:40 +0800
hi list and Roberto :-)
the PiL says you should never change the for iteraotr variable, but I
can not found this in reference, so I want to ask whether this
variable is just a normal variable? that is, if I change its value,
except the value of iterator will reset before the next loop is
executed, what else behavior will happen? or is this a undefined
hebahvior?
regards,
Xavier