[issue42623] Syntax Error showing pointer in wrong location

2020-12-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: > @ Steven, did you mean to un-nosy Pratik? No. I have tried to re-add him, but I think that because his user name is all digits, the bug tracker won't accept it. When I try, I get this error: Edit Error: user has no node 1051371 -- _

[issue42623] Syntax Error showing pointer in wrong location

2020-12-12 Thread E. Paine
E. Paine added the comment: While Tkinter could do it, I see no point in doing so. One thing that may be worth looking into is only allowing IDLE to use fixed-width fonts, but maybe this is just another of my crazy ideas... I think this can be safely closed unless someone wants to make a str

[issue42623] Syntax Error showing pointer in wrong location

2020-12-11 Thread Steven D'Aprano
Steven D'Aprano added the comment: The position of the caret assumes that every character in the string takes up the same width, measured in pixels. That is only true for monospaced fonts like Courier. The only way to position the caret precisely with a proportional-width font is to compute

[issue42623] Syntax Error showing pointer in wrong location

2020-12-11 Thread Pratik Palwai
New submission from Pratik Palwai <1051...@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