Skip to content
/ diff Public

Diff some stuff, find out why it ain't the same.

License

Notifications You must be signed in to change notification settings

Julian/diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diff

PyPI version Supported Python versions Build status pre-commit.ci status

diff defines a difference protocol. Watch:

>>> class LonelyObject:
...     def __diff__(self, other):
...         return f"{self} is not like {other}"
...
...     def __repr__(self):
...         return "<LonelyObject>"

>>> from diff import diff
>>> diff(LonelyObject(), 12).explain()
'<LonelyObject> is not like 12'

About

Diff some stuff, find out why it ain't the same.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Languages