[issue47156] IDLE: make use of extended SyntaxError info.

2022-03-29 Thread Andre Roberge


Andre Roberge  added the comment:

> (Anyone really want log of error?)

If by this you mean having access to the error from a known place (like 
sys.last_traceback or something else specific to IDLE but available from a 
script), then the answer from me is definitely yes.

--
nosy: +aroberge

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47156] IDLE: make use of extended SyntaxError info.

2022-03-29 Thread Terry J. Reedy


New submission from Terry J. Reedy :

In 3.10 and 3.11:

>>> while s := input.read(MAXBINSIZE):
... while len(s) < MAXBINSIZE and ns := input.read(MAXBINSIZE-len(s)):
  File "", 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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com