Michael Layzell added the comment:

This patch fixes a problem, which is that the caret was not placed where the 
source location information for the node is, but instead in a random position 
based on the indentation level.

The problem that the caret is not placed under the `=` sign, but instead at the 
front of the expression, feels like a different bug related to how source 
location information is computed throughout cpython for infix operators. I 
don't think it should be fixed in this bug, but rather in a follow-up.

Specifically, this fix (to make the printing actually respect the source 
location information) will also be required in order to fix the placement of 
the caret to under the = sign.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25677>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to