Title: Python asyncio doc seems not match the procedure when running · Issue #489 · python/asyncio · GitHub
Open Graph Title: Python asyncio doc seems not match the procedure when running · Issue #489 · python/asyncio
X Title: Python asyncio doc seems not match the procedure when running · Issue #489 · python/asyncio
Description: Path: what's new in 3.5 -- new feature pep 492 asyncio.gather Discription: asyncio eventloop will automatically call the gather Gathering_feature object did not passed to it; Doc like this: async def coro(): pass loop = asyncio.get_event...
Open Graph Description: Path: what's new in 3.5 -- new feature pep 492 asyncio.gather Discription: asyncio eventloop will automatically call the gather Gathering_feature object did not passed to it; Doc like this: async d...
X Description: Path: what's new in 3.5 -- new feature pep 492 asyncio.gather Discription: asyncio eventloop will automatically call the gather Gathering_feature object did not passed to it; Doc like this: asy...
Opengraph URL: https://github.com/python/asyncio/issues/489
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python asyncio doc seems not match the procedure when running","articleBody":"Path:\r\n what's new in 3.5 -- new feature pep 492 asyncio.gather\r\nDiscription:\r\n asyncio eventloop will automatically call the gather Gathering_feature object did not passed to it;\r\n\r\n\r\nDoc like this:\r\n\r\nasync def coro(): pass\r\nloop = asyncio.get_event_loop()\r\ncoros = asyncio.gather(coro(), coro())\r\nloop.run_until_complete(coros)\r\n\r\n\r\nactually:\r\n\r\nimport asyncio\r\nfrom time import sleep\r\nasync def f():\r\n print(3)\r\n sleep(1)\r\n print(4)\r\n return 1\r\nprint(1)\r\nb=asyncio.gather(f(),f())\r\nb=asyncio.gather(f(),f())\r\nb=asyncio.gather(f(),f())\r\nprint(b)\r\nprint(11)\r\na=asyncio.get_event_loop()\r\nprint(type(a))\r\nprint(type(a.run_until_complete(f())))\r\nprint(a.run_until_complete(f()))\r\n\r\n\r\nresult is:\r\n1\r\n\u003c_GatheringFuture pending\u003e\r\n11\r\n\u003cclass 'asyncio.windows_events._WindowsSelectorEventLoop'\u003e\r\n3\r\n4\r\n3\r\n4\r\n3\r\n4\r\n3\r\n4\r\n3\r\n4\r\n3\r\n4\r\n3\r\n4\r\n\u003cclass 'int'\u003e\r\n3\r\n4\r\n1\r\n","author":{"url":"https://github.com/utiao","@type":"Person","name":"utiao"},"datePublished":"2017-01-24T07:11:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/489/asyncio/issues/489"}
| 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:d8dcc092-d627-f5bb-ef50-adcc0750fe50 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9F0:3C62DE:7A2DC90:A2516F7:696DF7F5 |
| html-safe-nonce | 7e308f15935e433ddefd6cb9d15ade2acec7a6ac07480ad7c36a9b165ef11511 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUYwOjNDNjJERTo3QTJEQzkwOkEyNTE2Rjc6Njk2REY3RjUiLCJ2aXNpdG9yX2lkIjoiMjc5MTE3NjYwNDY0ODA3NzMwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1dedb7ffe2d4193744be68530aa17e2391b9f757126dfe074b50a67840bbfced |
| hovercard-subject-tag | issue:202741670 |
| 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/asyncio/489/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4373ba5f961b7e95e772bb7b1412d56e5c5ad231ddd68dbd89dd770c8945106f/python/asyncio/issues/489 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4373ba5f961b7e95e772bb7b1412d56e5c5ad231ddd68dbd89dd770c8945106f/python/asyncio/issues/489 |
| og:image:alt | Path: what's new in 3.5 -- new feature pep 492 asyncio.gather Discription: asyncio eventloop will automatically call the gather Gathering_feature object did not passed to it; Doc like this: async d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | utiao |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/asyncio git https://github.com/python/asyncio.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 33739295 |
| octolytics-dimension-repository_nwo | python/asyncio |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33739295 |
| octolytics-dimension-repository_network_root_nwo | python/asyncio |
| 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 | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width