DiffLib Question

whitewave fruels at gmail.com
Wed May 2 05:26:13 EDT 2007


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)
>>> dif =[]
>>> for i in a:

...     dif.append(i)
...     s = ''.join(dif)

Thanks
Jen




More information about the Python-list mailing list