This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients terry.reedy
Date 2022-03-29.22:10:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648591853.36.0.0695463785531.issue47156@roundup.psfhosted.org>
In-reply-to
Content
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?)
History
Date User Action Args
2022-03-29 22:10:53terry.reedysetrecipients: + terry.reedy
2022-03-29 22:10:53terry.reedysetmessageid: <1648591853.36.0.0695463785531.issue47156@roundup.psfhosted.org>
2022-03-29 22:10:53terry.reedylinkissue47156 messages
2022-03-29 22:10:53terry.reedycreate