Files
cpython/Python
Amaury Forgeot d'Arc 16570f59ca #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.

Will backport.
2008-01-24 22:51:18 +00:00
..
2006-04-13 13:08:58 +00:00
2008-01-23 20:19:01 +00:00
2008-01-23 20:19:01 +00:00
2008-01-23 17:15:06 +00:00
2008-01-07 16:41:57 +00:00
2005-07-09 15:26:33 +00:00
2008-01-18 08:47:59 +00:00