Apologies if this has already been raised at some point, but I wanted to
raise the idea of a basic standard library toolkit for operations on
async iterators.

This would include versions of functions that are already in the
standard library for non-async iterators, such as *map*, *filter*,*zip
*etc. It could also include a *merge* function for async iterators, for
example (this would yield items in whatever order they are yielded from
from the constituent iterators).

There are, of course, open source libraries providing these functions.
But in general there is far too wide a range of such libraries, and it
is difficult to tell which ones are best maintained. For the most basic
and universally useful of operations on async iterators, it would be far
better if they were part of the standard library.

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/JAVMCP75ZQO5JMC2LDSCL24BOYJ7K5ZX/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to