diff --git a/16-coroutine/coroaverager3.py b/16-coroutine/coroaverager3.py index c89a3fd..32492bb 100644 --- a/16-coroutine/coroaverager3.py +++ b/16-coroutine/coroaverager3.py @@ -63,8 +63,11 @@ def averager(): # <1> # the delegating generator def grouper(results, key): # <5> - while True: # <6> - results[key] = yield from averager() # <7> + # while True: # <6> + results[key] = yield from averager() # <7> + # When group.send(None) is called, group runs to the yield statement below + # without raising StopIteration and creating a useless new instance of averager + yield # the client code, a.k.a. the caller pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy