Files
cpython/Python
Amaury Forgeot d'Arc f1a7178cd5 #1920: when considering a block starting by "while 0", the compiler optimized the
whole construct away, even when an 'else' clause is present::

    while 0:
        print("no")
    else:
        print("yes")

did not generate any code at all.

Now the compiler emits the 'else' block, like it already does for 'if' statements.

Backport of r60265.
2008-01-24 23:42:08 +00:00
..
2006-04-13 13:08:58 +00:00
2007-10-05 03:45:42 +00:00
2002-06-11 06:22:31 +00:00
2002-01-23 15:51:12 +00:00
2002-08-15 14:59:02 +00:00
2007-08-23 18:08:33 +00:00
2002-12-30 22:08:05 +00:00
2006-07-11 16:44:25 +00:00
2007-10-12 03:59:09 +00:00
2002-06-11 06:22:31 +00:00
2005-07-09 15:26:33 +00:00