Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install null

How to install null

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install null
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.5
0.6.1Never BuiltWhy not?
0.5 Available View build log
Windows (64-bit)
0.5
0.6.1Never BuiltWhy not?
0.5 Available View build log
Mac OS X (10.5+)
0.5
0.6.1Never BuiltWhy not?
0.5 Available View build log
Linux (32-bit)
0.5
0.6.1Never BuiltWhy not?
0.5 Available View build log
Linux (64-bit)
0.6.1 Available View build log
0.5 Available View build log
0.6.1 Available View build log
 
Author
License
MIT
Dependencies
Imports
Lastest release
version 0.6.1 on Sep 20th, 2013

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.

Subscribe to package updates

Last updated Sep 20th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.