Mercurial > cpython-lru_cache-weakref
comparison Python/thread_os2.h @ 44931:742a264cce4f 2.5
#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.
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Thu, 24 Jan 2008 23:42:08 +0000 |
| parents | 0a4ad83fd654 |
| children | e38335d4df91 df5719c298db |
comparison
equal
deleted
inserted
replaced
| 44920:a8b750210b79 | 44931:742a264cce4f |
|---|
