Josh Rosenberg added the comment:
General comment on the patch: I believe per PEP7, we're still sticking to ANSI
C (aka C89), and specifically, "all declarations must be at the top of a block
(not necessarily at the top of function".
The patch assumes lax standards compliance (or C99+ compliance), declaring
variables in the for loop initializer section and midway through blocks. This
should be changed to declare all variables at the top of blocks, and not in for
loop initializer sections.
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list