[Python-Dev] API design: where to add async variants of existing stdlib APIs?

Paul Moore p.f.moore at gmail.com
Wed Mar 1 10:51:07 EST 2017


On 1 March 2017 at 15:34, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
> +1 to put both in contextlib.

With the proviso that the implementation shouldn't depend on asyncio.
As Yury says, it should be framework agnostic, let's be careful to
make that the case and not rely on helpers from asyncio, either
deliberately or accidentally.

If writing framework-agnostic versions is difficult, maybe that
implies that some framework-agnostic helpers need to be moved out of
asyncio?

Paul


More information about the Python-Dev mailing list