Skip to main content

Overview

Diff 2 python lists using a given key

image

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]

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.6.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

listdiff-1.0.6-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file listdiff-1.0.6.tar.gz.

File metadata

  • Download URL: listdiff-1.0.6.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for listdiff-1.0.6.tar.gz
Algorithm Hash digest
SHA256 9964720611c5e1cdeeebca8583225b9d31bd154c79d9ae22a5dd7cf0b69e2d4c
MD5 c46baa49bceb1204e68cb5367da9a0f9
BLAKE2b-256 cba6979c7c93e907b7068a9d1b298705607e049aa969767e5255a5c1903d9ce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for listdiff-1.0.6.tar.gz:

Publisher: release.yml on rkhwaja/pylistdiff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file listdiff-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: listdiff-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for listdiff-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7a975733b6593f36a971d120c3cfe77d449e70034531fe479018adc5768fc821
MD5 bfea3e43da65ed7cc2d8cbddc6a3d6dd
BLAKE2b-256 3b4cb9a6d438127964781efb1ef8511bd1793e489cb5053ad01b7d41168a40f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for listdiff-1.0.6-py3-none-any.whl:

Publisher: release.yml on rkhwaja/pylistdiff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 files

1.0.5

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page