[Python-ideas] The async API of the future: yield-from
Laurens Van Houtven
_ at lvh.cc
Mon Oct 15 17:51:03 CEST 2012
On Mon, Oct 15, 2012 at 5:32 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> My preferred way of thinking of "yield from" is as a simple
> refactoring tool: "Gee, this generator is getting kind of long and
> unwieldy. I'll move this piece out into a separate generator, and use
> yield from to invoke it" or "Hmm, I keep using this same sequence of 3
> or 4 operations. I guess I'll move them out to a separate generator
> and use yield from to invoke it in the appropriate places".
>
I agree. That's how I've used it. Maybe that's just short-sightedness.
--
cheers
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20121015/52983704/attachment.html>
More information about the Python-ideas
mailing list