Skip to main content
This module provides support to compare two lists that have same or different types of data in it.
Examples
Open the ipython3 shell and import the modules
$ import listcompare as plc
$ lis1 = [1, 2 ,3]
$ lis2 = [2, 1]
$ plc.compare_list(lis1, dlis2) # Frue

$ lis1 = [1, 2, 3]
$ lis2 = [2, 1, '3']
$ plc.compare_list(lis1, lis2) # False

$ lis1 = ['1', '2', '3']
$ lis2 = ['2', '1']
$ plc.compare_list(lis1, lis2) # False

$ lis1 = [1, 2, 3]
$ lis2 = [2, 1, 3]
$ plc.compare_list(lis1, lis2) # True

$ lis1 = [{1: 1, 2: 2}]
$ lis2 = [{1: 1, 2: 2}]
$ plc.compare_list(lis1, lis2) # True

$ lis1 = 123
$ lis2 = [{1: 1, 2: 2}]
$ plc.compare_list(lis1, lis2) # Exception will be raised

$ lis1 = [1, 'a', {1: 1, 2: 2}, 3]
$ lis2 = [3, 1, {1: 1, 2: 2}, 'a']]
$ plc.compare_list(lis1, lis2) # True

Release files for listcompare 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for listcompare 2.1.1
File Size Uploaded
listcompare-2.1.1.tar.gz 15.4 kB Details

Release files / listcompare-2.1.1.tar.gz

Download URL listcompare-2.1.1.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
261bf4f939b96405fd7f5fa606be77cf8be2419d9e9f9cfb3614c13163be0a61
BLAKE2b-256 checksum
How to use checksums
8aa590f22254567e86af980becb899164c04f4e4d9ddc1ea7aef13a456b6ea9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

2.1.1 This release

1 release file

2.1.0

1 release file

1.1.11

1 release file

1.1.9

2 release files

1.1.8

1 release file

1.1.7

1 release file

1.1.6

1 release file

1.1.5

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

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