Hello,
I am currently doing the third option. Doing file.read() to both file
to be compared then feed the result to the compare function.
Let me give you a brief sample of what I want to achieve.
Using this code
>>> diffline=[]
>>> fileDiff = difflib.Differ().compare(f1, f2)
>>> diffline = list(
> Usually, Differ receives two sequences of lines, being each line a
> sequence of characters (strings). It uses a SequenceMatcher to compare
> lines; the linejunk argument is used to ignore certain lines. For each
> pair of similar lines, it uses another SequenceMatcher to compare
> charac
Hi,
Thank you for your reply. But I don't fully understand what the
charjunk and linejunk is all about. I'm a bit newbie in python using
the DiffLib. I'm I using the right code here? I will I implement the
linejunk and charjunk using the following code?
>>> a = difflib.Differ().compare(d1,d2)
Hi Guys,
I'm a bit confused in difflib. In most cases, the differences
found using difflib works well but when I have come across the
following set of text:
>>> d1 = '''In addition, the considered problem does not have a meaningful
>>> traditional type of adjoint
... problem even for the sim