[docs] Documentation Bug frm ActivePython User Guide

Sandro Tosi sandro.tosi at gmail.com
Sat Apr 13 19:36:53 CEST 2013


Hello Kevin,

On Tue, Apr 2, 2013 at 10:08 PM, Kevin Smith <ksmith1 at telus.net> wrote:
>              Hello,
>     I tried the code from this section in the guide ...
>
> 4.4. break and continue Statements, and else Clauses on Loops

I suggest to look at
http://docs.python.org/2.7/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops
and the note below the code, reported here: "Yes, this is the correct
code. Look closely: the else clause belongs to the for loop, not the
if statement."

It's likely the code you entered was not correctly indented, hence the
misbehaviour you're seeing.

Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list