diff options
author | Georg Brandl <georg@python.org> | 2007-10-21 10:45:46 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-10-21 10:45:46 +0000 |
commit | 7211a1ec6cc205bb8358899761ed784015dc8558 (patch) | |
tree | 2bdb0141a5a57e32222e9a4a27c6a9279036b152 /Doc/howto/functional.rst | |
parent | 3e5443a0aafa7fa70320bffcf07bf05857bc6615 (diff) | |
download | cpython-7211a1ec6cc205bb8358899761ed784015dc8558.tar.gz |
Add :term:s for descriptors.
Diffstat (limited to 'Doc/howto/functional.rst')
-rw-r--r-- | Doc/howto/functional.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 78520d1b7f..39a1e0509f 100644 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -448,8 +448,8 @@ Here's the simplest example of a generator function:: yield i Any function containing a ``yield`` keyword is a generator function; this is -detected by Python's :term:`bytecode` compiler which compiles the function specially as -a result. +detected by Python's :term:`bytecode` compiler which compiles the function +specially as a result. When you call a generator function, it doesn't return a single value; instead it returns a generator object that supports the iterator protocol. On executing |