Message391808
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. |
|
Date |
User |
Action |
Args |
2021-04-24 21:46:00 | terry.reedy | set | recipients:
+ terry.reedy, eric.araujo, lys.nikolaou, pablogsal |
2021-04-24 21:46:00 | terry.reedy | set | messageid: <1619300760.63.0.784828170074.issue43914@roundup.psfhosted.org> |
2021-04-24 21:46:00 | terry.reedy | link | issue43914 messages |
2021-04-24 21:46:00 | terry.reedy | create | |
|