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 eric.araujo, lys.nikolaou, pablogsal, terry.reedy
Date 2021-04-24.21:46:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619300760.63.0.784828170074.issue43914@roundup.psfhosted.org>
In-reply-to
Content
Great!!!  I also tried
>>> try: compile("a xyzjdkjfk", '', 'single')
except SyntaxError as e:
	print(e, e.msg, e.lineno, e.offset, e.end_lineno, e.end_offset)

	
invalid syntax. Perhaps you forgot a comma? (, line 1) invalid syntax. Perhaps you forgot a comma? 1 1 1 12

The language change that enables the display change is the addition of end_lineno and end_offset attributes.  I will look into using these in IDLE.  I will submit a PR to augment the What's New entry, so others can  also improve their error marking.
History
Date User Action Args
2021-04-24 21:46:00terry.reedysetrecipients: + terry.reedy, eric.araujo, lys.nikolaou, pablogsal
2021-04-24 21:46:00terry.reedysetmessageid: <1619300760.63.0.784828170074.issue43914@roundup.psfhosted.org>
2021-04-24 21:46:00terry.reedylinkissue43914 messages
2021-04-24 21:46:00terry.reedycreate