Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mittsh/cmp
A simple Python function to list differences between 2 objects recursively (list, dict, or values).
https://github.com/mittsh/cmp
Last synced: 7 days ago
JSON representation
A simple Python function to list differences between 2 objects recursively (list, dict, or values).
- Host: GitHub
- URL: https://github.com/mittsh/cmp
- Owner: mittsh
- License: mit
- Created: 2013-12-17T09:42:39.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-17T09:59:47.000Z (about 11 years ago)
- Last Synced: 2024-11-05T14:14:35.976Z (about 2 months ago)
- Language: Python
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cmp
===A simple Python function to list differences between 2 objects recursively (list, dict, or values).
Usage
=====Simply call: `cmp` passing 2 objects as arguments, e.g.
cmp(a, b)
It will return a `list` of `ComparisonDifference` objects. Each of those objects have a `reason` property and a `path` that indicates the path to follow to get the error.