问题
Hi all: I checked out the source code of Python 2.6, and I want to study the diff implementation in python. However, I can not find the right source file. Could any one give me some information which source file contained the algorithm implementation in Python
Thanks for any information!
回答1:
If by "diff implementation in Python" you mean the difflib module, then here is the source.
There is also a simple diff implementation based on this module in the Python source distribution.
来源:https://stackoverflow.com/questions/5897983/diff-algorithm-implementation-in-python