This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Implements the null object pattern.

Project Description

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

Authors

Glued together by Łukasz Langa.

Release History

Release History

This version
History Node

0.6.1

History Node

0.6.0

History Node

0.5

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
null-0.6.1.tar.gz (25.6 kB) Copy SHA256 Checksum SHA256 Source Mar 5, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting