Title: f-string interpolation expressions don't properly parse when there is a `!` in them · Issue #1770 · RustPython/RustPython · GitHub
Open Graph Title: f-string interpolation expressions don't properly parse when there is a `!` in them · Issue #1770 · RustPython/RustPython
X Title: f-string interpolation expressions don't properly parse when there is a `!` in them · Issue #1770 · RustPython/RustPython
Description: Feature f"1 =/= 2: {1 != 2}" Expected: "1 =/= 2: True" Actual: SyntaxError: f"1 =/= 2: {1 != 2}" ↑ Got error in f-string: Invalid conversion flag
Open Graph Description: Feature f"1 =/= 2: {1 != 2}" Expected: "1 =/= 2: True" Actual: SyntaxError: f"1 =/= 2: {1 != 2}" ↑ Got error in f-string: Invalid conversion flag
X Description: Feature f"1 =/= 2: {1 != 2}" Expected: "1 =/= 2: True" Actual: SyntaxError: f"1 =/= 2: {1 != 2}" ↑ Got error in f-string: Invalid conversion flag
Opengraph URL: https://github.com/RustPython/RustPython/issues/1770
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"f-string interpolation expressions don't properly parse when there is a `!` in them","articleBody":"## Feature\r\n\r\n```py\r\nf\"1 =/= 2: {1 != 2}\"\r\n```\r\nExpected:\r\n```py\r\n\"1 =/= 2: True\"\r\n```\r\nActual:\r\n```py\r\nSyntaxError: \r\nf\"1 =/= 2: {1 != 2}\"\r\n ↑\r\n Got error in f-string: Invalid conversion flag\r\n```","author":{"url":"https://github.com/coolreader18","@type":"Person","name":"coolreader18"},"datePublished":"2020-02-21T05:55:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1770/RustPython/issues/1770"}
| 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:63133ea7-cbd3-0796-0cfc-bcd6b8cc0c81 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0D4:2F525B:F75B1A:1600A75:6A635176 |
| html-safe-nonce | 11c472a69a9e28184148bd97dd15e029dc7e85de98e740157e137584d6efa3d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEQ0OjJGNTI1QjpGNzVCMUE6MTYwMEE3NTo2QTYzNTE3NiIsInZpc2l0b3JfaWQiOiIyMDE1MTc4ODAxNDM0Mjg0NDA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4524e485db8df93f34d5df660880346cf03e7f646984cc5bdc4eed6972b9f41f |
| hovercard-subject-tag | issue:568752383 |
| 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/1770/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9706d3272ad149d56d0520410b3b2a3054af7f72257222a2cc22393b6ba1780b/RustPython/RustPython/issues/1770 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9706d3272ad149d56d0520410b3b2a3054af7f72257222a2cc22393b6ba1780b/RustPython/RustPython/issues/1770 |
| og:image:alt | Feature f"1 =/= 2: {1 != 2}" Expected: "1 =/= 2: True" Actual: SyntaxError: f"1 =/= 2: {1 != 2}" ↑ Got error in f-string: Invalid conversion flag |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | coolreader18 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| 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 | 990295d92a4cc7b63fbbd83a046217cd7d77d49c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width