You diff objects, you find out why they ain't the same.
Project description
diff defines a difference protocol. Watch:
>>> class LonelyObject(object):
... def __diff__(self, other):
... return "{} is not like {}".format(self, other)
...
... def __repr__(self):
... return "<LonelyObject>"
>>> from diff import diff
>>> diff(LonelyObject(), 12).explain()
'<LonelyObject> is not like 12'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
diff-0.4.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
diff-0.4.1-py2-none-any.whl
(5.2 kB
view hashes)