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 vstinner
Recipients BTaskaya, lukasz.langa, pablogsal, vstinner
Date 2021-08-31.14:26:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630419978.66.0.255576618171.issue45063@roundup.psfhosted.org>
In-reply-to
Content
I looked at the implementation. It's more complex than what I expected.

tb_displayline(): _Py_DisplaySourceLine() returns the source line with the indentation, but then it truncates the indentation. 

extract_anchors_from_line() includes the indentation if I understand correctly.

There is also a special case for trailing spaces. Like this code path:

        // If this is a multi-line expression, then we will highlight until
        // the last non-whitespace character.

There is also a funny part about bytes vs Unicode vs UTF-8, that I don't get.
History
Date User Action Args
2021-08-31 14:26:18vstinnersetrecipients: + vstinner, lukasz.langa, pablogsal, BTaskaya
2021-08-31 14:26:18vstinnersetmessageid: <1630419978.66.0.255576618171.issue45063@roundup.psfhosted.org>
2021-08-31 14:26:18vstinnerlinkissue45063 messages
2021-08-31 14:26:18vstinnercreate