-
-
Couldn't load subscription status.
- Fork 33.3k
Open
Labels
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 tonight.
Examples
Parentheses are incorrectly matched:
>>> (1 2
...
SyntaxError: '(' was never closed
>>> ) # IDLE highlights this as the closing parenMatching parentheses aren't detected (from #85560):
>>> (1 if 0
else 0) # IDLE beeps here, not detecting the opening parenCalltip appears unexpectedly (Python 3.12; a new error message hides this issue in the latest version):
>>> (1 2
...
SyntaxError: incomplete input
>>> ( # this opens the calltip for `input`CPython versions tested on:
3.12, CPython main branch
Operating systems tested on:
macOS
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Todo