Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d0150ad5
Commit
d0150ad5
authored
May 05, 2015
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 24088: Clarify semantics of yield expression.
parent
ac87ed7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Doc/reference/expressions.rst
Doc/reference/expressions.rst
+1
-1
No files found.
Doc/reference/expressions.rst
View file @
d0150ad5
...
@@ -325,7 +325,7 @@ thus can only be used in the body of a function definition. Using a yield
...
@@ -325,7 +325,7 @@ thus can only be used in the body of a function definition. Using a yield
expression in a function's body causes that function to be a generator.
expression in a function's body causes that function to be a generator.
When a generator function is called, it returns an iterator known as a
When a generator function is called, it returns an iterator known as a
generator. That generator then controls the execution of
a
generator function.
generator. That generator then controls the execution of
the
generator function.
The execution starts when one of the generator's methods is called. At that
The execution starts when one of the generator's methods is called. At that
time, the execution proceeds to the first yield expression, where it is
time, the execution proceeds to the first yield expression, where it is
suspended again, returning the value of :token:`expression_list` to the generator's
suspended again, returning the value of :token:`expression_list` to the generator's
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment