mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 07:50:07 +07:00
PY-1842 Extract method within while breaks content and generates endless loop
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
def fib(n):
|
||||
a, b = 0, 1
|
||||
while b < n:
|
||||
<begin>print(b, end=' ')
|
||||
a, b = b, a+b<end>
|
||||
print()
|
||||
fib(7)
|
||||
<result>
|
||||
In:
|
||||
a
|
||||
b
|
||||
Out:
|
||||
a
|
||||
b
|
||||
Reference in New Issue
Block a user