Title: Remove legacy code for generator based coroutines in `asyncio` · Issue #102748 · python/cpython · GitHub
Open Graph Title: Remove legacy code for generator based coroutines in `asyncio` · Issue #102748 · python/cpython
X Title: Remove legacy code for generator based coroutines in `asyncio` · Issue #102748 · python/cpython
Description: Generator based coroutines were long deprecated and removed and asyncio doesn't not supports it. There is some left over code for supporting it which can be removed now. The first thing is this behavior of asyncio.iscoroutine which makes...
Open Graph Description: Generator based coroutines were long deprecated and removed and asyncio doesn't not supports it. There is some left over code for supporting it which can be removed now. The first thing is this beh...
X Description: Generator based coroutines were long deprecated and removed and asyncio doesn't not supports it. There is some left over code for supporting it which can be removed now. The first thing is this...
Opengraph URL: https://github.com/python/cpython/issues/102748
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove legacy code for generator based coroutines in `asyncio`","articleBody":"Generator based coroutines were long deprecated and removed and `asyncio` doesn't not supports it. There is some left over code for supporting it which can be removed now. \r\n\r\nThe first thing is this behavior of `asyncio.iscoroutine` which makes no sense now. I propose to remove this first. \r\n\r\n```py\r\nimport asyncio\r\n\r\ndef gen():\r\n yield 1\r\n\r\nassert not asyncio.iscoroutine(gen()) # fails\r\n```\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-102749\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/kumaraditya303","@type":"Person","name":"kumaraditya303"},"datePublished":"2023-03-16T08:10:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/102748/cpython/issues/102748"}
| 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:0e10c09a-40ac-e2e5-518f-a3cfeef36280 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C88A:66035:B6CB2D:FAF465:6969F17E |
| html-safe-nonce | 1bbaf41bf95caf8a990def60ddece70cee89c45f3ecc447532872351ba7c24bc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODhBOjY2MDM1OkI2Q0IyRDpGQUY0NjU6Njk2OUYxN0UiLCJ2aXNpdG9yX2lkIjoiOTUxNzQ1NjU5MTM3NTUyNzY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 85842e08f1e82c860e2db2937aa3411f87799e8428d1ac65fb5701e5fe03e0e3 |
| hovercard-subject-tag | issue:1626929196 |
| 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/102748/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77f098a67e3b913fc2b3f30422513a12aebf3c6ebec7b536105b8307f1a2f4ff/python/cpython/issues/102748 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77f098a67e3b913fc2b3f30422513a12aebf3c6ebec7b536105b8307f1a2f4ff/python/cpython/issues/102748 |
| og:image:alt | Generator based coroutines were long deprecated and removed and asyncio doesn't not supports it. There is some left over code for supporting it which can be removed now. The first thing is this beh... |
| 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 | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width