-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-107017: removed mention that C does it the same way #107020
8000New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
5742c7e
67534f2
a588abc
6acff0c
5d08a1b
e4f676a
9c34614
8f08838
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
the reader may not know any control flow statements or other languages, also the "twists" may feel too intimidating
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
More Control Flow Tools | ||
*********************** | ||
|
||
Besides the :keyword:`while` statement just introduced, Python uses the usual | ||
flow control statements known from other languages, with some twists. | ||
Besides the :keyword:`while` statement just introduced, Python uses a few more | ||
that will be introduced in this chapter. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "... that we will encounter..." |
||
|
||
|
||
.. _tut-if: | ||
|
@@ -166,7 +166,7 @@ arguments. In chapter :ref:`tut-structures`, we will discuss in more detail abo | |
The :keyword:`break` statement breaks out of the innermost enclosing | ||
:keyword:`for` or :keyword:`while` loop. | ||
|
||
Loop statements may have an :keyword:`!else` clause; it is executed when the loop | ||
The :keyword:`for` loop statements may have an extra :keyword:`!else` clause; it is executed when the loop | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the line length needs to be checked here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This just seems bad. You restricted it to |
||
terminates through exhaustion of the iterable (with :keyword:`for`) or when the | ||
condition becomes false (with :keyword:`while`), but not when the loop is | ||
terminated by a :keyword:`break` statement. This is exemplified by the | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"As well as" would be more idiomatic English than "besides".