Source

options / nulltype.py

Full commit
import six

class NullType(object):
    """
    A 'null' type different from, but parallel to, None. Core function
    is representing emptyness in a way that doesn't overload None.
    
    Instantiate to create desired Null values.
    """
    if six.PY3:
        def bool(self):
            """I am always False."""
            return False
    else:
        def __nonzero__(self):
            """I am always False."""
            return False