[issue31037] Results in section 4.4 break and continue

2017-07-25 Thread Lisabel Leon

New submission from Lisabel Leon:

The first example of this section shows different results if typed into the 
Python interpreter.  This is the documentation (documentation.png) and these 
are the results as I type it into my environment (testresults.jpg).

--
assignee: docs@python
components: Documentation
files: testresults.PNG
messages: 299097
nosy: Lisabel Leon, docs@python
priority: normal
severity: normal
status: open
title: Results in section 4.4 break and continue
versions: Python 3.6
Added file: http://bugs.python.org/file47040/testresults.PNG

___
Python tracker 
<http://bugs.python.org/issue31037>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31037] Results in section 4.4 break and continue

2017-07-25 Thread Lisabel Leon

Lisabel Leon added the comment:

Thank you Zachary for such a speedy response.
I'll paste text next time.

Rgds!
Lisabel

On Tue, Jul 25, 2017 at 11:56 AM, Zachary Ware 
wrote:

>
> Zachary Ware added the comment:
>
> Take a look at the statement immediately following the example:
>
> "(Yes, this is the correct code. Look closely: the else clause belongs to
> the for loop, not the if statement.)"
>
> The example is correct, and is introducing the concept of an 'else' clause
> on a for loop.  This is very much not the first report of this that we've
> had, though; perhaps the 'look closely' admonition should be moved before
> the example?
>
> For future reference, please copy and paste the text of your tests rather
> than a screenshot; not all participants can see the screenshot.
>
> --
> nosy: +zach.ware
>
> ___
> Python tracker 
> <http://bugs.python.org/issue31037>
> ___
>

--

___
Python tracker 
<http://bugs.python.org/issue31037>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com