[issue42623] Syntax Error showing pointer in wrong location

Pratik Palwai report at bugs.python.org
Fri Dec 11 21:31:43 EST 2020


New submission from Pratik Palwai <1051371 at student.auhsd.us>:

When I get a syntax error, it shows the line with the error, and then a little '^' on the next line, showing where the error is. However, the location of the '^' is a little misleading, since it isn't in the right spot. For example (not sure if it will format correctly though):
elif self.left == None and self.right =! None:
                          ^
The symbol should be under the +! instead of under the 'and.' Also, this problem doesn't occur with the font Courier.

----------
assignee: terry.reedy
components: IDLE
messages: 382900
nosy: 1051371, terry.reedy
priority: normal
severity: normal
status: open
title: Syntax Error showing pointer in wrong location
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42623>
_______________________________________


More information about the Python-bugs-list mailing list