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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
diff-0.4.1-py2-none-any.whl
(5.2 kB
view details)
File details
Details for the file diff-0.4.1.tar.gz.
File metadata
- Download URL: diff-0.4.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbf7705dfd8b1657604d127c3521c38bc76b04c7b5a6020887001c1452fb8baf
|
|
| MD5 |
f689dc1a3697b6db94cc1380d28c7fa9
|
|
| BLAKE2b-256 |
25024a0ffe0f204353e66d3ae0554be35478212457c23c509b1d1b15f3f7ddd8
|
File details
Details for the file diff-0.4.1-py2-none-any.whl.
File metadata
- Download URL: diff-0.4.1-py2-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47f465c8cb83bc9827c04352aee2727178d3f9d0233816697e2b51d3f03b7bc8
|
|
| MD5 |
79e95c4bd90fc6327010e580a4cfd5ab
|
|
| BLAKE2b-256 |
dea23e541e30af7f135209d3a5523a575a9b12412e9b1707081c4db568e75f37
|