Title: IDLE doesn't know where to start parsing · Issue #124451 · python/cpython · GitHub
Open Graph Title: IDLE doesn't know where to start parsing · Issue #124451 · python/cpython
X Title: IDLE doesn't know where to start parsing · Issue #124451 · python/cpython
Description: Bug report Bug description: After making a typo in IDLE, I noticed some unexpected calltips and incorrectly matched parentheses. These seem to be caused by the parser not knowing where the current prompt begins. I'll try to send in a PR ...
Open Graph Description: Bug report Bug description: After making a typo in IDLE, I noticed some unexpected calltips and incorrectly matched parentheses. These seem to be caused by the parser not knowing where the current ...
X Description: Bug report Bug description: After making a typo in IDLE, I noticed some unexpected calltips and incorrectly matched parentheses. These seem to be caused by the parser not knowing where the current ...
Opengraph URL: https://github.com/python/cpython/issues/124451
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IDLE doesn't know where to start parsing","articleBody":"# Bug report\n\n### Bug description:\n\nAfter making a typo in IDLE, I noticed some unexpected calltips and incorrectly matched parentheses. These seem to be caused by the parser not knowing where the current prompt begins. I'll try to send in a PR tonight.\n\n## Examples\n\nParentheses are incorrectly matched:\n\n```python\n>>> (1 2\n...\nSyntaxError: '(' was never closed\n>>> ) # IDLE highlights this as the closing paren\n```\n\nMatching parentheses aren't detected (from #85560):\n\n```python\n>>> (1 if 0\n else 0) # IDLE beeps here, not detecting the opening paren\n```\n\nCalltip appears unexpectedly (Python 3.12; a new error message hides this issue in the latest version):\n```python\n>>> (1 2\n...\nSyntaxError: incomplete input\n>>> ( # this opens the calltip for `input`\n```\n\n### CPython versions tested on:\n\n3.12, CPython main branch\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-124554\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/ujan-r","@type":"Person","name":"ujan-r"},"datePublished":"2024-09-24T17:17:47Z","url":"https://github.com/python/cpython/issues/124451"}
| 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:a9449fc3-5dfb-b9b4-b6bf-085776690877 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E34E:211F05:16AAC1:1CA8EA:6B0200EB |
| html-safe-nonce | 2effb16a70bcd0e6e4b3758a03423e6e842c2732713c55691d1bf7650fa35ca7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzRFOjIxMUYwNToxNkFBQzE6MUNBOEVBOjZCMDIwMEVCIiwidmlzaXRvcl9pZCI6Ijg1NTEyMjYzOTAwMTg2NTQ0NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 56b0a9d8b8c135a785881c2f85ffb8a7c37806e5d3a9fa4545ea9968687380f8 |
| hovercard-subject-tag | issue:2545948296 |
| 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/124451/issue_layout |
| twitter:image | https://opengraph.githubassets.com/37420d347e022b103a0ba0007a3888c007a24cb31d212daa3151faac0a430553/python/cpython/issues/124451 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37420d347e022b103a0ba0007a3888c007a24cb31d212daa3151faac0a430553/python/cpython/issues/124451 |
| og:image:alt | Bug report Bug description: After making a typo in IDLE, I noticed some unexpected calltips and incorrectly matched parentheses. These seem to be caused by the parser not knowing where the current ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ujan-r |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width