Skip to content

Instantly share code, notes, and snippets.

@cocoatomo
Created March 7, 2011 15:15
Show Gist options
  • Save cocoatomo/858614 to your computer and use it in GitHub Desktop.
Save cocoatomo/858614 to your computer and use it in GitHub Desktop.
>>> diff(['aaa bbb', 'ccc ddd'],
... ['aaa xxx', 'bbb ccc ddd'])
(((1, "aaa"), (1, "aaa"), NO_DIFF),
((1, ""), (1, "xxx"), ADD),
((1, "bbb"), (2, "bbb"), MOVE),
((2, "ccc"), (2, "ccc"), MOVE),
((2, "ddd"), (2, "ddd"), MOVE))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment