<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 3/21/2013 4:43 PM, Vladislav Zorov
wrote:<br>
</div>
<blockquote
cite="mid:CALHm=7KYAmM021zbXjabS6bGRYvqUqJmALzUhGNEUa1Wx=qPbA@mail.gmail.com"
type="cite">
<div>Hello, dear documentation maintainers!</div>
<div><br>
</div>
Present in : all versions of the documentation (2.6.8 - 3.4.0)<br>
Example URL: <a moz-do-not-send="true"
href="http://docs.python.org/3.4/library/itertools.html#itertools.combinations">http://docs.python.org/3.4/library/itertools.html#itertools.combinations</a>
<div>
Description : The `else: return` part is incorrectly indented
on the same level as `for`, thus appearing to be part of the
`while` loop.<br>
<br>
<div><font face="courier new, monospace">while True:<br>
for i in reversed(range(r)):<br>
if indices[i] != i + n - r:<br>
break<br>
else:<br>
return</font><br>
<br>
Thank you for giving me so, so much to read! I hope I didn't
misunderstand the code</div>
</div>
</blockquote>
Seems you did.<br>
<br>
for_stmt ::= "for" target_list "in" expression_list ":" suite
["else" ":" suite]<br>
<br>
A <a class="reference internal" href="simple_stmts.html#break"><tt
class="xref std std-keyword docutils literal"><span class="pre">break</span></tt></a>
statement executed in the first suite terminates the loop without
executing the <a class="reference internal" href="#else"><tt
class="xref std std-keyword docutils literal"><span class="pre">else</span></tt></a>
clause’s suite..<br>
<br>
<blockquote
cite="mid:CALHm=7KYAmM021zbXjabS6bGRYvqUqJmALzUhGNEUa1Wx=qPbA@mail.gmail.com"
type="cite">
<div>
<div> - forgive me if I did.</div>
</div>
</blockquote>
OK<br>
<pre class="moz-signature" cols="72">--
Bob Gailer
919-636-4239
Chapel Hill NC</pre>
</body>
</html>