[New-bugs-announce] [issue47156] IDLE: make use of extended SyntaxError info.
Terry J. Reedy
report at bugs.python.org
Tue Mar 29 18:10:53 EDT 2022
New submission from Terry J. Reedy <tjreedy at udel.edu>:
In 3.10 and 3.11:
>>> while s := input.read(MAXBINSIZE):
... while len(s) < MAXBINSIZE and ns := input.read(MAXBINSIZE-len(s)):
File "<stdin>", line 2
while len(s) < MAXBINSIZE and ns := input.read(MAXBINSIZE-len(s)):
^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: cannot use assignment expressions with expression
IDLE only colors the 'l' of 'len'; add extended marking.
Some other errors gained extended location in 3.11 (only, I believe). Adding colors may require monkeypatching method or subclassing class in traceback.py. May have commented on issue or PR.
Related: Put SyntaxError in box. (Anyone really want log of error?)
----------
assignee: terry.reedy
components: IDLE
messages: 416302
nosy: terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: IDLE: make use of extended SyntaxError info.
versions: Python 3.10, Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47156>
_______________________________________
More information about the New-bugs-announce
mailing list