Skip to main content

Implements the null object pattern.

Project description

Implements the null object pattern.


  • 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/

Change Log


  • will forever be my favourite gotcha of Python packaging
  • PEP8-fied the sources


  • long overdue Python 3 support


  • initial published version


Glued together by Łukasz Langa.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for null, version 0.6.1
Filename, size File type Python version Upload date Hashes
Filename, size null-0.6.1.tar.gz (25.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page