PyDiff is the forerunner of ydiff, which I implemented around 2011. Later I developed ydiff based on the same algorithm of PyDiff, while supporting multiple languages. Unfortunately I never got a chance to write a Python parser for ydiff. Thus I put the original code for PyDiff here, just in hope it can be useful to someone.
Just run pydiff.py from the command line:
./pydiff.py demos/list1.py demos/list2.py
A demo of PyDiff's output (PyDiff diffing itself over a recent big change) can be found here:
http://www.yinwang.org/resources/pydiff1-pydiff2.html
Yin Wang ([email protected])
Copyright (C) 2011-2013 Yin Wang
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.