Title: expressions in blocks don't print their value in the REPL · Issue #2527 · RustPython/RustPython · GitHub
Open Graph Title: expressions in blocks don't print their value in the REPL · Issue #2527 · RustPython/RustPython
X Title: expressions in blocks don't print their value in the REPL · Issue #2527 · RustPython/RustPython
Description: Try the following snippets: for i in range(10): i with open('/tmp/file.txt', 'w') as f: f.write('hello') In CPython: >>> for i in range(10): ... i ... 0 1 2 3 4 5 6 7 8 9 >>> with open('/tmp/file.txt', 'w') as f: ... f.write('hello') ......
Open Graph Description: Try the following snippets: for i in range(10): i with open('/tmp/file.txt', 'w') as f: f.write('hello') In CPython: >>> for i in range(10): ... i ... 0 1 2 3 4 5 6 7 8 9 >>> with open('/tmp/file.t...
X Description: Try the following snippets: for i in range(10): i with open('/tmp/file.txt', 'w') as f: f.write('hello') In CPython: >>> for i in range(10): ... i ... 0 1 2 3 4 5 6...
Opengraph URL: https://github.com/RustPython/RustPython/issues/2527
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"expressions in blocks don't print their value in the REPL","articleBody":"Try the following snippets:\r\n\r\n```\r\nfor i in range(10):\r\n i\r\n\r\nwith open('/tmp/file.txt', 'w') as f:\r\n f.write('hello')\r\n```\r\n\r\nIn CPython:\r\n\r\n```\r\n>>> for i in range(10):\r\n... i\r\n... \r\n0\r\n1\r\n2\r\n3\r\n4\r\n5\r\n6\r\n7\r\n8\r\n9\r\n>>> with open('/tmp/file.txt', 'w') as f:\r\n... f.write('hello')\r\n... \r\n5\r\n>>>\r\n```\r\n\r\nIn RustPython:\r\n\r\n```\r\n>>>>> for i in range(10):\r\n..... i\r\n..... \r\n>>>>> with open('/tmp/file.txt', 'w') as f:\r\n..... f.write('hello')\r\n..... \r\n>>>>> \r\n```","author":{"url":"https://github.com/verhovsky","@type":"Person","name":"verhovsky"},"datePublished":"2021-03-25T17:55:24Z","url":"https://github.com/RustPython/RustPython/issues/2527"}
| 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:2198f8b4-04f8-a9ee-cb21-a6a03097d117 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E098:2D8919:317AD0:42888C:6B00271F |
| html-safe-nonce | 417749df065e82f22322eaf9a4dbaade9afa9b2d12b28045839195768c88307a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDk4OjJEODkxOTozMTdBRDA6NDI4ODhDOjZCMDAyNzFGIiwidmlzaXRvcl9pZCI6IjE4NzE3NTIzNDE0MzkzOTE1MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f0ecb7937922a4be68d3af1645ddd731122b2e371199a29c5676a457555ef512 |
| hovercard-subject-tag | issue:841173555 |
| 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/2527/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f7cde039e437f5670332bdcbf9309e0b61164034ce2e8cbee65d3eff80ae0b7/RustPython/RustPython/issues/2527 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f7cde039e437f5670332bdcbf9309e0b61164034ce2e8cbee65d3eff80ae0b7/RustPython/RustPython/issues/2527 |
| og:image:alt | Try the following snippets: for i in range(10): i with open('/tmp/file.txt', 'w') as f: f.write('hello') In CPython: >>> for i in range(10): ... i ... 0 1 2 3 4 5 6 7 8 9 >>> with open('/tmp/file.t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | verhovsky |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width