Skip to main content

py-polymorphic-list

Publish to PyPI Deploy docs to GitHub Pages

Python implementation of a polymorphic list

View on PyPI / Documentation / GitHub Source Code

What is a Polymorphic List?

A polymorphic list is a data abstraction similar to LinkedLists where objects of two classes, NonEmptyList, and EmptyList, are employed to cleanly handle edge cases where a LinkedList would be null. In a LinkedList, the last node's next reference is null; however, for a PolymorphicList, the last node's next reference is an EmptyList, allowing the EmptyList object to override methods defined in a PolymorphicList.

This means that every method is overridden to have a version for a NonEmptyList and for an EmptyList.

Installation

pip install py-polymorphic-list

Or install with pip3, accordingly.

Documentation

Check out the documentation for full details on usage.

Release files for py-polymorphic-list 1.0.0

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

Source distribution (sdist)

Source distribution for py-polymorphic-list 1.0.0
File Size Uploaded
py_polymorphic_list-1.0.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-polymorphic-list 1.0.0
File Interpreter ABI Platform
py_polymorphic_list-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / py_polymorphic_list-1.0.0.tar.gz

Download URL py_polymorphic_list-1.0.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5a0c3dba6a9a4001050fa53159f3a5bc10835e2043c7f04488320898d379f36f
BLAKE2b-256 checksum
How to use checksums
242c4c015b5cb2dce8f85dd36d71611918e82a0effa4dbbdc14460e4bee67e55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / py_polymorphic_list-1.0.0-py3-none-any.whl

Download URL py_polymorphic_list-1.0.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26a9c4e93e84e62fa641d26a15e0c492cafc7e98f30da7d625e4026f0d0c835f
BLAKE2b-256 checksum
How to use checksums
9156c76439a5e69236bc41cea42a497b279593d20889219a6f712e722a83fc59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

2 release 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