Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using iterable coroutines in asyncio internally #100112

Open
kumaraditya303 opened this issue Dec 8, 2022 · 1 comment
Open

Avoid using iterable coroutines in asyncio internally #100112

kumaraditya303 opened this issue Dec 8, 2022 · 1 comment

Comments

@kumaraditya303
Copy link
Contributor

kumaraditya303 commented Dec 8, 2022

asyncio currently uses iterable coroutine directly to wrap awaitables with __await__ methods. This leads to unnecessary special casing and is confusing as asyncio does not supports using yield from now so it should not be used internally too. This will avoid checking for generators everywhere in public APIs (TBD for different issue).

Linked PRs

@kumaraditya303
Copy link
Contributor Author

kumaraditya303 commented Dec 9, 2022

PR #100128 adds a coroutine wrapper around it so that it is not used directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant