New submission from Terry J. Reedy <tjre...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue47156>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to