[docs] Bugs in Tutorial for Python 3.6.2. Section 4.4 (p. 19)

Zachary Ware zachary.ware+pydocs at gmail.com
Wed Jul 26 22:53:29 EDT 2017


Hi Hendra,

On Wed, Jul 26, 2017 at 6:39 PM, Hendra Soetjahja via docs
<docs at python.org> wrote:
> Hi Python Development Team,
>
> There are 3 bugs in Tutorial for Python 3.6.2. Section 4.4 (p. 19).
> These are tested for both in Python 2.7, 3.5, and 3.6 interpreters, as
> module and in interactive mode.
> I also tested it on Ubuntu 16.04 LTS, Windows 7, and Windows 10.

Fortunately, the bug is in your transcription of the example, not in
the docs (nor Python itself).  Look at the line immediately following
the example:

> (Yes, this is the correct code. Look closely: the else clause belongs to the for loop, not the if statement.)

Note also that this section is titled "..., and else Clauses on Loops".

This was also recently reported on the bug tracker; if you have any
suggestions for improving the clarity of that section, please add a
comment to http://bugs.python.org/issue31037

Regards,
-- 
Zach


More information about the docs mailing list