null
Implements the null object pattern.
Provides:
a Null singleton that can be used like None (but is not None and is not equal to None)
a NullList that returns Null instead of raising IndexError
a NullDict that returns Null instead of raising KeyError
a nullify() routine that converts mappings and sequences to the nullified variant
an unset singleton for clearing up APIs to distinguish between a keyword argument that is set by the user as None and simply not set by the user
How do I run the tests?
The easiest way would be to extract the source tarball and run:
$ python test/test_null.py
Change Log
0.6.1
MANIFEST.in will forever be my favourite gotcha of Python packaging
PEP8-fied the sources
0.6.0
long overdue Python 3 support
0.5.0
initial published version
Metadata
Release files for null 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| null-0.6.1.tar.gz | 25.6 kB | Without provenance | Details for null-0.6.1.tar.gz |
Release files / null-0.6.1.tar.gz
| Download URL | null-0.6.1.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77debb2c7a6c47d4d44a129f507f01267d1df4844b432fbf05491d7f6bb6aeee
|
|
BLAKE2b-256 checksum How to use checksums |
3289c66c77683529b45c8732433a576bccafeb2399180977d42717da398dbf4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for null 0.6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.