Visitar URL original
bpo-29414: Change 'the for statement is such an iterator' in Tutorial by marco-buttu · Pull Request #273 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Resolve merge conflict
  • Loading branch information
rhettinger committed Jun 1, 2019
commit 71b689322cb1d15ebfaa99a885ac5412db655251
5 changes: 0 additions & 5 deletions Doc/tutorial/controlflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,8 @@ following loop, which searches for prime numbers::
the :keyword:`for` loop, **not** the :keyword:`if` statement.)

When used with a loop, the ``else`` clause has more in common with the
<<<<<<< HEAD
``else`` clause of a :keyword:`try` statement than it does that of
:keyword:`if` statements: a :keyword:`!try` statement's ``else`` clause runs
=======
``else`` clause of a :keyword:`try` statement than it does with that of
:keyword:`if` statements: a :keyword:`try` statement's ``else`` clause runs
>>>>>>> bpo-29414: add range to list example.
when no exception occurs, and a loop's ``else`` clause runs when no ``break``
occurs. For more on the :keyword:`!try` statement and exceptions, see
:ref:`tut-handling`.
Expand Down