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 tim.peters
Recipients docs@python, jugmac00, terry.reedy, tim.peters
Date 2021-04-03.02:26:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617416817.16.0.697503623497.issue43689@roundup.psfhosted.org>
In-reply-to
Content
Lines beginning with "?" are entirely synthetic: they were not present in either input.  So that's what that part means.

I'm not clear on what else could be materially clearer without greatly bloating the text. For example,

>>> d = difflib.Differ()
>>> for L in d.compare(["abcefghijkl\n"], ["a cxefghijkl\n"]):
	print(L, end="")
- abcefghijkl
?  ^
+ a cxefghijkl
?  ^ +

The "?" lines guide the eye to the places that differ: "b" was replaced by a blank, and "x" was inserted.  The marks on the "?" lines are intended to point out exactly where changes (substitutions, insertions, deletions) occurred.

If the second input had a tab instead of a blank, the "+" wouldn't _appear_ to be under the "x" at all.  It would instead "look like" a long string of blanks was between "a" and "c" in the first input, and the "+" would appear to be under one of them somewhere near the middle of the empty space.

Tough luck. Use tab characters (or any other kind of "goofy" whitespace) in input to visual tools, and you deserve whatever you get :-)
History
Date User Action Args
2021-04-03 02:26:57tim.peterssetrecipients: + tim.peters, terry.reedy, docs@python, jugmac00
2021-04-03 02:26:57tim.peterssetmessageid: <1617416817.16.0.697503623497.issue43689@roundup.psfhosted.org>
2021-04-03 02:26:57tim.peterslinkissue43689 messages
2021-04-03 02:26:56tim.peterscreate