[Async-sig] [ANN] async_generator v1.2 released
Nathaniel Smith
njs at pobox.com
Tue Nov 22 15:32:45 EST 2016
On Nov 22, 2016 6:22 AM, "Alex Grönholm" <alex.gronholm at nextday.fi> wrote:
>
> Does this library offer any advantages over the same functionality in
asyncio_extras?
You would probably know better than me, but last time I looked, the
generator code in asyncio_extras didn't support asend/athrow/aclose, didn't
support yield from, and took shortcuts that assume that you're using
asyncio as your coroutine runner. So I believe async_generator is more
complete and more correct (in the sense that it sticks strictly to
implementing the language level semantics for async generators without
assuming any particular runner).
Of course asyncio_extras has lots of other handy things in it too, while
async_generator is very strictly focused on just this one thing. (Well, I
threw in an implementation of aclosing too, since you can't really use
async generators without it, but that's pretty trivial.) It might make
sense for asyncio_extras to out-source generator handling to
async_generator? Or not.
-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/async-sig/attachments/20161122/ab0ffe78/attachment.html>
More information about the Async-sig
mailing list