Title: The string representation of the asyncio object results in 'panicked'. · Issue #4859 · RustPython/RustPython · GitHub
Open Graph Title: The string representation of the asyncio object results in 'panicked'. · Issue #4859 · RustPython/RustPython
X Title: The string representation of the asyncio object results in 'panicked'. · Issue #4859 · RustPython/RustPython
Description: The following code defines an asynchronous function goo that takes two arguments a and b. The asyncio.create_task() function is then used inside the main function to create a task object that represents the execution of the goo coroutine...
Open Graph Description: The following code defines an asynchronous function goo that takes two arguments a and b. The asyncio.create_task() function is then used inside the main function to create a task object that repre...
X Description: The following code defines an asynchronous function goo that takes two arguments a and b. The asyncio.create_task() function is then used inside the main function to create a task object that repre...
Opengraph URL: https://github.com/RustPython/RustPython/issues/4859
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The string representation of the asyncio object results in 'panicked'.","articleBody":"The following code defines an asynchronous function goo that takes two arguments a and b. The asyncio.create_task() function is then used inside the main function to create a task object that represents the execution of the goo coroutine with arguments 1 and b=1. Finally, the repr() function obtains a string representation of the task object. The asyncio.run() function runs the main coroutine and execute the task. The code essentially creates and runs an empty task while RustPython gets crashing.\r\n\r\n```\r\nimport asyncio\r\n\r\nasync def goo(a, b): pass\r\n\r\nasync def main():\r\n task = asyncio.create_task(goo(1, b=1))\r\n print(repr(task))\r\n\r\nasyncio.run(main())\r\n```\r\n\r\nCrash message: \r\n```\r\nthread 'main' panicked at 'index out of bounds: the len is 2 but the index is 18446744073709551615', vm/src/frame.rs:169:9\r\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\r\n```\r\n\r\n\r\n\r\nEnvironment:\r\nUbuntu 18.04\r\nrustpython v0.2.0","author":{"url":"https://github.com/xiaxinmeng","@type":"Person","name":"xiaxinmeng"},"datePublished":"2023-04-06T11:27:27Z","url":"https://github.com/RustPython/RustPython/issues/4859"}
| 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:ad6a2817-8943-2230-660a-e2f2032e42c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9172:59CDA:30195E8:3F4DE89:6B00299E |
| html-safe-nonce | c495f221a2f9cc4d19d74571f218bcd874698d2850fbdc43aaa23053e53c24ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTcyOjU5Q0RBOjMwMTk1RTg6M0Y0REU4OTo2QjAwMjk5RSIsInZpc2l0b3JfaWQiOiI5NjQ2NTg1NDI3NjQxMDgxOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c0e9dd224946f2595d370aaf8f233ae1fec47aa3883b04604225bb2cd763dae1 |
| hovercard-subject-tag | issue:1657242814 |
| 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/RustPython/RustPython/4859/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1ccfb39dc4176cef1b857f3832e1a2346cede1d75e443526772afce068f10def/RustPython/RustPython/issues/4859 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1ccfb39dc4176cef1b857f3832e1a2346cede1d75e443526772afce068f10def/RustPython/RustPython/issues/4859 |
| og:image:alt | The following code defines an asynchronous function goo that takes two arguments a and b. The asyncio.create_task() function is then used inside the main function to create a task object that repre... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xiaxinmeng |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width