Title: `_remote_debugging`: incorrect docstring `get_all_awaited_by()` · Issue #149302 · python/cpython · GitHub
Open Graph Title: `_remote_debugging`: incorrect docstring `get_all_awaited_by()` · Issue #149302 · python/cpython
X Title: `_remote_debugging`: incorrect docstring `get_all_awaited_by()` · Issue #149302 · python/cpython
Description: Documentation While writing a reproduction for #149230, I noted that get_all_awaited_by docstring does not match reality: cpython/Modules/_remote_debugging/module.c Lines 702 to 741 in f2c7c0d _remote_debugging.RemoteUnwinder.get_all_awa...
Open Graph Description: Documentation While writing a reproduction for #149230, I noted that get_all_awaited_by docstring does not match reality: cpython/Modules/_remote_debugging/module.c Lines 702 to 741 in f2c7c0d _rem...
X Description: Documentation While writing a reproduction for #149230, I noted that get_all_awaited_by docstring does not match reality: cpython/Modules/_remote_debugging/module.c Lines 702 to 741 in f2c7c0d _rem...
Opengraph URL: https://github.com/python/cpython/issues/149302
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`_remote_debugging`: incorrect docstring `get_all_awaited_by()`","articleBody":"### Documentation\n\nWhile writing a reproduction for #149230, I noted that `get_all_awaited_by`\ndocstring does not match reality:\n\nhttps://github.com/python/cpython/blob/f2c7c0d2b799c927d9a78e87e4a640d3f9b0356c/Modules/_remote_debugging/module.c#L702-L741\n\nIt's not a list of `[frames, task_name, subtasks]` but `(thread_id, awaited_by)`.\n\n## Reproduction\n\n```bash\n2026-05-03T01:17:12.666835000+0200 maurycy@gimel /Users/maurycy/src/github.com/maurycy/cpython (main 6b632ce?) % cat żółtagęślajaźń.py \nimport asyncio\nimport os\nfrom _remote_debugging import RemoteUnwinder\nfrom pprint import pp\n\n\nasync def main():\n asyncio.create_task(asyncio.sleep(60), name=\"jaźńżółtejgęsi\")\n await asyncio.sleep(0)\n pp(RemoteUnwinder(os.getpid()).get_all_awaited_by())\n\n\nif __name__ == \"__main__\":\n asyncio.run(main())\n2026-05-03T01:17:14.997344000+0200 maurycy@gimel /Users/maurycy/src/github.com/maurycy/cpython (main 6b632ce?) % uv run --python ./python.exe --with rich żółtagęślajaźń.py\n[_remote_debugging.AwaitedInfo(thread_id=15788487, awaited_by=[_remote_debugging.TaskInfo(task_id=4399457888, task_name='Task-1', coroutine_stack=[_remote_debugging.CoroInfo(call_stack=[_remote_debugging.FrameInfo(filename='/Users/maurycy/src/github.com/maurycy/cpython/żółtagęślajaźń.py', location=_remote_debugging.LocationInfo(lineno=10, end_lineno=10, col_offset=7, end_col_offset=55), funcname='main', opcode=None)], task_name=4399457888)], awaited_by=[]), _remote_debugging.TaskInfo(task_id=4399407440, task_name='jaźńżółtejgęsi', coroutine_stack=[_remote_debugging.CoroInfo(call_stack=[_remote_debugging.FrameInfo(filename='/Users/maurycy/src/github.com/maurycy/cpython/Lib/asyncio/tasks.py', location=_remote_debugging.LocationInfo(lineno=702, end_lineno=702, col_offset=15, end_col_offset=27), funcname='sleep', opcode=None)], task_name=4399407440)], awaited_by=[])]),\n _remote_debugging.AwaitedInfo(thread_id=0, awaited_by=[])]\n```\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-149312\n* gh-158805\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/maurycy","@type":"Person","name":"maurycy"},"datePublished":"2026-05-02T23:20:12Z","url":"https://github.com/python/cpython/issues/149302"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:3175bf1b-7ea8-77be-6015-94fd67e0b8ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADE8:17543D:A338E2:CE99D2:6B02203B |
| html-safe-nonce | b13764bdd0f553efa3b94b99e08e191c59463f2d55fbfda355be67ad39e86dda |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREU4OjE3NTQzRDpBMzM4RTI6Q0U5OUQyOjZCMDIyMDNCIiwidmlzaXRvcl9pZCI6IjQyMDIxNjE1ODg2Mjg3NTg1ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f68d58e156d5d64939235ac173c25761758c282c167250d4fb9d2df1648ad856 |
| hovercard-subject-tag | issue:4370342338 |
| 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/149302/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9690210aaf0fc51d2f06fe3cfe3a32f107791d5a8dde123a28ac9fa3624e2d71/python/cpython/issues/149302 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9690210aaf0fc51d2f06fe3cfe3a32f107791d5a8dde123a28ac9fa3624e2d71/python/cpython/issues/149302 |
| og:image:alt | Documentation While writing a reproduction for #149230, I noted that get_all_awaited_by docstring does not match reality: cpython/Modules/_remote_debugging/module.c Lines 702 to 741 in f2c7c0d _rem... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maurycy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width