Kaydet (Commit) 2b7a5c46 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Tighten example code.

üst f287f177
......@@ -381,7 +381,7 @@ loops that truncate the stream.
for i in reversed(range(r)):
cycles[i] -= 1
if cycles[i] == 0:
indices[:] = indices[:i] + indices[i+1:] + indices[i:i+1]
indices[i:] = indices[i+1:] + indices[i:i+1]
cycles[i] = n - i
else:
j = cycles[i]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment