Title: python -m asyncio and breakpoint() will fovever error loop and mess up the terminal · Issue #138827 · python/cpython · GitHub
Open Graph Title: python -m asyncio and breakpoint() will fovever error loop and mess up the terminal · Issue #138827 · python/cpython
X Title: python -m asyncio and breakpoint() will fovever error loop and mess up the terminal · Issue #138827 · python/cpython
Description: Bug report Bug description: # Add a code block here, if required ➜ cpython git:(main) ./python.exe -m asyncio asyncio REPL 3.15.0a0 (heads/hy/close_new_repl_error_mess:b194f8fae6, Sep 12 2025, 19:50:01) [Clang 17.0.0 (clang-1700.0.13.5)]...
Open Graph Description: Bug report Bug description: # Add a code block here, if required ➜ cpython git:(main) ./python.exe -m asyncio asyncio REPL 3.15.0a0 (heads/hy/close_new_repl_error_mess:b194f8fae6, Sep 12 2025, 19:5...
X Description: Bug report Bug description: # Add a code block here, if required ➜ cpython git:(main) ./python.exe -m asyncio asyncio REPL 3.15.0a0 (heads/hy/close_new_repl_error_mess:b194f8fae6, Sep 12 2025, 19:5...
Opengraph URL: https://github.com/python/cpython/issues/138827
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"python -m asyncio and breakpoint() will fovever error loop and mess up the terminal","articleBody":"# Bug report\n\n### Bug description:\n\n```cli\n# Add a code block here, if required\n➜ cpython git:(main) ./python.exe -m asyncio\nasyncio REPL 3.15.0a0 (heads/hy/close_new_repl_error_mess:b194f8fae6, Sep 12 2025, 19:50:01) [Clang 17.0.0 (clang-1700.0.13.5)] on darwin\nUse \"await\" directly instead of \"asyncio.run()\".\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e import asyncio\n\u003e\u003e\u003e breakpoint()\n\u003e \u003cpython-input-0\u003e(1)\u003cmodule\u003e()\n(Pdb) n\n--Return--\n\u003e \u003cpython-input-0\u003e(1)\u003cmodule\u003e()-\u003eNone\n(Pdb) n\n\u003e /Users/yihong/repos/cpython/Lib/asyncio/__main__.py(57)callback()\n-\u003e if not inspect.iscoroutine(coro):\n(Pdb) n\n\u003e /Users/yihong/repos/cpython/Lib/asyncio/__main__.py(58)callback()\n-\u003e future.set_result(coro)\n(Pdb)\n```\nthen type `n` twice the terminal will boom \n\n\u003cimg width=\"2296\" height=\"1269\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/681c08bf-7b11-408f-8be8-6b8d96e716d1\" /\u003e\n\n\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nmacOS","author":{"url":"https://github.com/yihong0618","@type":"Person","name":"yihong0618"},"datePublished":"2025-09-12T11:54:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/138827/cpython/issues/138827"}
| 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:714169de-426e-c201-af79-7bd37bc011e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E61A:1F9FF7:5B7211:7E5A92:6A51253E |
| html-safe-nonce | 2042661279bbbfca9f7a6bd5dad2a0284414ceba76b0f19b1ced31e502a7276e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjFBOjFGOUZGNzo1QjcyMTE6N0U1QTkyOjZBNTEyNTNFIiwidmlzaXRvcl9pZCI6IjIzNDkwMTU5MDE5OTc3MDQ1MTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8339ad02f923af3f59df42071a804281662453a25a5883769c376657398fc4e0 |
| hovercard-subject-tag | issue:3410180363 |
| 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/138827/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7ebe84cf1911d7947101265879662a5f676c63d57d53a7834520b9c63a5caa9e/python/cpython/issues/138827 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7ebe84cf1911d7947101265879662a5f676c63d57d53a7834520b9c63a5caa9e/python/cpython/issues/138827 |
| og:image:alt | Bug report Bug description: # Add a code block here, if required ➜ cpython git:(main) ./python.exe -m asyncio asyncio REPL 3.15.0a0 (heads/hy/close_new_repl_error_mess:b194f8fae6, Sep 12 2025, 19:5... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yihong0618 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width