Diff 2 python lists using a given key
Project description
Overview
Diff 2 python lists using a given key
Usage
listA = [3, 2, 1]
listB = [5, 4, 3]
inA, inBoth, inB = DiffUnsortedLists(listA=listA, listB=listB, keyA=lambda x: x, keyB=lambda x: x)
assert inA == [1, 2]
assert inBoth == [(3, 3)]
assert inB == [4, 5]
listA = [1, 2, 3]
listB = [3, 4, 5]
resultB = DiffListsByKey(iterA=iter(listA), iterB=iter(listB), keyA=lambda x: x, keyB=lambda x: x)
assert inA == [1, 2]
assert inBoth == [(3, 3)]
assert inB == [4, 5]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
listdiff-1.0.1.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file listdiff-1.0.1.tar.gz
.
File metadata
- Download URL: listdiff-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d1790ef8c06634188205c15b81f8aa7dbb81cf3f5d94247344b4579a92d2e60 |
|
MD5 | 612fd89e90cfc1ceeb56ed0d81e4e833 |
|
BLAKE2b-256 | 0aba78544fd0275453e6c9177363d3ed451eca8a27099a8714c480df60420371 |
File details
Details for the file listdiff-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: listdiff-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cf86b131c5fece7e41e0bedc68dc0fdc8f300b67cdfc3c81909184878a3f0a6 |
|
MD5 | d3dc5546e38e5c10b686dff2e2ffdb1a |
|
BLAKE2b-256 | 7d1186c596629e57d608e220aef828e8d47b4899c856fec74d2e3fb0af32d0c3 |