(value)
return isinstance(value, basestring) and value.upper() == NULL
Returns whether the value contains explicit 'NULL' value

    >>> isNullValue(u'NULL')
    True
    >>> isNullValue(u'foobar')
    False
Returns whether the value contains explicit 'NULL' value
Returns whether the value contains explicit NULL value
def isNullValue(value):
    """
    Returns whether the value contains explicit 'NULL' value

    >>> isNullValue(u'NULL')
    True
    >>> isNullValue(u'foobar')
    False
    """

    return isinstance(value, basestring) and value.upper() == NULL
def isNullValue ( value ) : return isinstance ( value , basestring ) and value . upper ( ) == NULL