Title: Empty unclosed f-string does not directly raise a SyntaxError in the REPL · Issue #103727 · python/cpython · GitHub
Open Graph Title: Empty unclosed f-string does not directly raise a SyntaxError in the REPL · Issue #103727 · python/cpython
X Title: Empty unclosed f-string does not directly raise a SyntaxError in the REPL · Issue #103727 · python/cpython
Description: Bug report This is another bug introduced in 1ef61cf. When typing an empty single-quoted unclosed f-string in the REPL, another line is added and input is expected, before a SyntaxError is raised. Before 1ef61cf: ❯ ./python.exe Python 3....
Open Graph Description: Bug report This is another bug introduced in 1ef61cf. When typing an empty single-quoted unclosed f-string in the REPL, another line is added and input is expected, before a SyntaxError is raised. ...
X Description: Bug report This is another bug introduced in 1ef61cf. When typing an empty single-quoted unclosed f-string in the REPL, another line is added and input is expected, before a SyntaxError is raised. ...
Opengraph URL: https://github.com/python/cpython/issues/103727
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Empty unclosed f-string does not directly raise a SyntaxError in the REPL","articleBody":"# Bug report\r\n\r\nThis is another bug introduced in https://github.com/python/cpython/commit/1ef61cf71a218c71860ff6aecf0fd51edb8b65dc. When typing an empty single-quoted unclosed f-string in the REPL, another line is added and input is expected, before a `SyntaxError` is raised.\r\n\r\nBefore https://github.com/python/cpython/commit/1ef61cf71a218c71860ff6aecf0fd51edb8b65dc:\r\n```python3\r\n❯ ./python.exe \r\nPython 3.12.0a7+ (tags/v3.12.0a7-153-ga6b07b5a34:a6b07b5a34, Apr 23 2023, 13:18:40) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e f'\r\n File \"\u003cstdin\u003e\", line 1\r\n f'\r\n ^\r\nSyntaxError: unterminated string literal (detected at line 1)\r\n```\r\n\r\nCurrent main:\r\n```python3\r\n❯ ./python.exe \r\nPython 3.12.0a7+ (heads/main:05b3ce7339, Apr 23 2023, 13:26:24) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e f\"\r\n... \r\n File \"\u003cstdin\u003e\", line 1\r\n f\"\r\n ^\r\nSyntaxError: unterminated f-string literal (detected at line 2)\r\n\u003e\u003e\u003e f\"\r\n... asdnc\r\n File \"\u003cstdin\u003e\", line 1\r\n f\"\r\n ^\r\nSyntaxError: unterminated f-string literal (detected at line 2)\r\n\u003e\u003e\u003e f\"\r\n... asdasd\"\r\n File \"\u003cstdin\u003e\", line 1\r\n f\"\r\n ^\r\nSyntaxError: unterminated f-string literal (detected at line 2)\r\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-103775\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/lysnikolaou","@type":"Person","name":"lysnikolaou"},"datePublished":"2023-04-23T19:28:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/103727/cpython/issues/103727"}
| 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:4dca4b74-f9bd-dead-89e9-75c202144bab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 860E:1E165C:105EB7E:15EECE2:69699287 |
| html-safe-nonce | 8e03fbdfc17a5cb8248b72b700c75a7f1ded83fe67c3d4d27ba9f99920487c92 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjBFOjFFMTY1QzoxMDVFQjdFOjE1RUVDRTI6Njk2OTkyODciLCJ2aXNpdG9yX2lkIjoiMjk2NTU0MTQ0OTI1MjgzNTk3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c76c173ed8dceb400c0608eda8e1effd1ab61605252ea0a8f9cb8c254eeba884 |
| hovercard-subject-tag | issue:1680140256 |
| 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/103727/issue_layout |
| twitter:image | https://opengraph.githubassets.com/287bf4cb3b6aa6a6f5a83a5d3631ed5c40e094eae81187bad1ba235cfa85b3af/python/cpython/issues/103727 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/287bf4cb3b6aa6a6f5a83a5d3631ed5c40e094eae81187bad1ba235cfa85b3af/python/cpython/issues/103727 |
| og:image:alt | Bug report This is another bug introduced in 1ef61cf. When typing an empty single-quoted unclosed f-string in the REPL, another line is added and input is expected, before a SyntaxError is raised. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lysnikolaou |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width