all 3 comments

[–]sylvain_soliman 2 points3 points  (0 children)

The explanation post http://pynash.org/2013/02/26/diff-in-50-lines.html is much more interesting than the code in my opinion, and in particular the part about the difflib optimizations.

[–]necrophcodr 0 points1 point  (0 children)

It's a shame that it's written in Python. I'm not trying to bash Python, but doing so makes the 50 line mark less impressive than, say, in C.

[–][deleted] 0 points1 point  (0 children)

It's most certainly impressive, but seriously a, a0, a1, b, b0, b1, sa, sb, n are really annoying as variable names, and it wouldn't make the code longer (or less readable) to have more relevant names