Nov. 21, 2014
5 a.m.
On 11/20/2014 10:49 AM, MRAB wrote:
I can see the problem with 'while': if there are multiple 'for' parts, they are equivalent to nested 'for' loops,
x for x in A if x=B is also equivalent to nested compound statements.
so you might assume that a 'while' part would also be equivalent to a nested 'while' loop, whereas it would, in fact, be controlling the preceding 'for' part.
-- Terry Jan Reedy