Message416302
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?) |
|
Date |
User |
Action |
Args |
2022-03-29 22:10:53 | terry.reedy | set | recipients:
+ terry.reedy |
2022-03-29 22:10:53 | terry.reedy | set | messageid: <1648591853.36.0.0695463785531.issue47156@roundup.psfhosted.org> |
2022-03-29 22:10:53 | terry.reedy | link | issue47156 messages |
2022-03-29 22:10:53 | terry.reedy | create | |
|