Title: Avoid using iterable coroutines in `asyncio` internally · Issue #100112 · python/cpython · GitHub
Open Graph Title: Avoid using iterable coroutines in `asyncio` internally · Issue #100112 · python/cpython
X Title: Avoid using iterable coroutines in `asyncio` internally · Issue #100112 · python/cpython
Description: 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...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/python/cpython/issues/100112
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Avoid using iterable coroutines in `asyncio` internally","articleBody":"`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). \r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-100128\r\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/kumaraditya303","@type":"Person","name":"kumaraditya303"},"datePublished":"2022-12-08T12:57:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/100112/cpython/issues/100112"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ae10d04a-fba7-778e-298b-7aab4cde6c74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 951E:20E170:62B08B:88D193:696A26E3 |
| html-safe-nonce | 06ec6f7d00195d2f9c3d241ced991c10372bc5c998922cf4c2baad907bfe9b45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTFFOjIwRTE3MDo2MkIwOEI6ODhEMTkzOjY5NkEyNkUzIiwidmlzaXRvcl9pZCI6IjM0NTI3MDk0NTIyNTI1NDYyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3244333b0c7785ede95a89c72155b08e5d5a5dc9eda0500a170255e63d2da739 |
| hovercard-subject-tag | issue:1484587410 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/100112/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e914cbc8d07ebf07ec5305d845e062f088f80321eef1221208064846a1aca1f9/python/cpython/issues/100112 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e914cbc8d07ebf07ec5305d845e062f088f80321eef1221208064846a1aca1f9/python/cpython/issues/100112 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kumaraditya303 |
| hostname | github.com |
| expected-hostname | github.com |
| None | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width