Loop-and-a-half (Re: Curious assignment behaviour)
Markus Schaber
markus at schabi.de
Thu Oct 11 16:16:11 EDT 2001
Hi,
Donn Cave <donn at u.washington.edu> schrub:
> (Note that I'm not
> talking about the initialization section of for(), which is a
> pure non-feature - those statements can just as well be written
> before the loop.)
There's one difference: You can define temporary variables which
are only valid inside of the for statement.
But this may be emulated creating an artificial {} block around
it.
markus
--
You don't have to be Microsoft to suck... but it helps.
(Tim Hammerquist in comp.lang.python)
More information about the Python-list
mailing list