Title: `sys.set_asyncgen_hooks` docs are not correct about its signature · Issue #114384 · python/cpython · GitHub
Open Graph Title: `sys.set_asyncgen_hooks` docs are not correct about its signature · Issue #114384 · python/cpython
X Title: `sys.set_asyncgen_hooks` docs are not correct about its signature · Issue #114384 · python/cpython
Description: Bug report Refs #103132 (comment) The signature is set_asyncgen_hooks(firstiter=
Open Graph Description: Bug report Refs #103132 (comment) The signature is set_asyncgen_hooks(firstiter=
X Description: Bug report Refs #103132 (comment) The signature is set_asyncgen_hooks(firstiter=<unrepresentable>, finalizer=<unrepresentable>). Docs say that it is: set_asyncgen_hooks(firstiter, final...
Opengraph URL: https://github.com/python/cpython/issues/114384
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`sys.set_asyncgen_hooks` docs are not correct about its signature","articleBody":"# Bug report\n\nRefs https://github.com/python/cpython/pull/103132#discussion_r1448716543\n\nThe signature is `set_asyncgen_hooks(firstiter=\u003cunrepresentable\u003e, finalizer=\u003cunrepresentable\u003e)`.\nDocs say that it is: `set_asyncgen_hooks(firstiter, finalizer)`\nDocstring say that it is: `set_asyncgen_hooks(* [, firstiter] [, finalizer])`\n\nIt should be: `set_asyncgen_hooks([firstiter] [, finalizer])` (I guess)\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-114385\n* gh-114386\n* gh-114387\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2024-01-21T12:14:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/114384/cpython/issues/114384"}
| 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:38658adf-d2f8-e451-784f-7f0320faf0a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB0A:164E7F:237D50F:2EC1780:696B14E8 |
| html-safe-nonce | 0c3e2dfb7b3c43715997b98385a2d80baf331b4f2dce872c4db177101c6c9d94 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjBBOjE2NEU3RjoyMzdENTBGOjJFQzE3ODA6Njk2QjE0RTgiLCJ2aXNpdG9yX2lkIjoiNDMzMTY2ODA2ODE5MDg1MjMyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | de665d5dd28ca794ce1ade91f1873b0862a08c6b6659fbd0631818d0bd804488 |
| hovercard-subject-tag | issue:2092559649 |
| 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/114384/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4498aec4f2e80a86fe123b93c4c6ff98889b1ec48ec53004780030abdcf41751/python/cpython/issues/114384 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4498aec4f2e80a86fe123b93c4c6ff98889b1ec48ec53004780030abdcf41751/python/cpython/issues/114384 |
| og:image:alt | Bug report Refs #103132 (comment) The signature is set_asyncgen_hooks(firstiter= |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width