[Python-checkins] bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663)

iritkatriel webhook-mailer at python.org
Fri Jan 7 13:39:57 EST 2022


https://github.com/python/cpython/commit/273cb8e7577d143830404f6779946a0bedb58758
commit: 273cb8e7577d143830404f6779946a0bedb58758
branch: main
author: Jacob Walls <jacobtylerwalls at gmail.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2022-01-07T18:39:40Z
summary:

bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663)

files:
M Doc/reference/expressions.rst

diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 991f2d717a0a6..0a6651ea5ed67 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -427,9 +427,9 @@ Yield expressions
 The yield expression is used when defining a :term:`generator` function
 or an :term:`asynchronous generator` function and
 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 function,
 and using it in an :keyword:`async def` function's body causes that
-coroutine function to be an asynchronous generator. For example::
+coroutine function to be an asynchronous generator function. For example::
 
     def gen():  # defines a generator function
         yield 123



More information about the Python-checkins mailing list