Title: SyntaxError in await-for-in structure · Issue #4907 · RustPython/RustPython · GitHub
Open Graph Title: SyntaxError in await-for-in structure · Issue #4907 · RustPython/RustPython
X Title: SyntaxError in await-for-in structure · Issue #4907 · RustPython/RustPython
Description: RustPython fails to handle await-for-in structure even the await operation is in an asynchronous function. See the following example: async def bar(): [await print(i) for i in [1, 2, 3]] Expected (on CPython 3.11): work normally Got on R...
Open Graph Description: RustPython fails to handle await-for-in structure even the await operation is in an asynchronous function. See the following example: async def bar(): [await print(i) for i in [1, 2, 3]] Expected (...
X Description: RustPython fails to handle await-for-in structure even the await operation is in an asynchronous function. See the following example: async def bar(): [await print(i) for i in [1, 2, 3]] Expected (...
Opengraph URL: https://github.com/RustPython/RustPython/issues/4907
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SyntaxError in await-for-in structure","articleBody":"RustPython fails to handle await-for-in structure even the await operation is in an asynchronous function. See the following example:\r\n\r\n\r\n```\r\nasync def bar():\r\n [await print(i) for i in [1, 2, 3]]\r\n```\r\n\r\nExpected (on CPython 3.11): work normally \r\n\r\nGot on RustPython:\r\n```\r\nSyntaxError: 'await' outside async function at line 141 column 5\r\n [await print(i) for i in [1, 2, 3]]\r\n ^\r\n```\r\n\r\n\r\nEnvironment\r\nUbuntu 18.04\r\nRustPython 0.2.0\r\nCPython 3.11.3","author":{"url":"https://github.com/xiaxinmeng","@type":"Person","name":"xiaxinmeng"},"datePublished":"2023-04-21T05:38:59Z","url":"https://github.com/RustPython/RustPython/issues/4907"}
| 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:a03a7ce4-2b36-a904-2939-df7f40c75a73 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD9C:2EC689:223A28C:2E74339:6B002715 |
| html-safe-nonce | f2a47e2e3ccbb935d230e03014ea79c48afacf92409214798fa5049d2466112a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDlDOjJFQzY4OToyMjNBMjhDOjJFNzQzMzk6NkIwMDI3MTUiLCJ2aXNpdG9yX2lkIjoiMzg2MTU4ODA2Mzc4ODQ3NjE4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 21f17457764a17c8e24a0c44db0e72ce0c8e7f62156545f4d406ec46a6ede1a3 |
| hovercard-subject-tag | issue:1677846371 |
| 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/4907/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64070638346f599cf8dd73094e321f1cf50c0b544a7e76ee2550c418d640c8e4/RustPython/RustPython/issues/4907 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64070638346f599cf8dd73094e321f1cf50c0b544a7e76ee2550c418d640c8e4/RustPython/RustPython/issues/4907 |
| og:image:alt | RustPython fails to handle await-for-in structure even the await operation is in an asynchronous function. See the following example: async def bar(): [await print(i) for i in [1, 2, 3]] Expected (... |
| 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 | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width