def is_primitive(obj):
    'Helper method to see if the object is a basic data type. Unicode strings,\n    integers, longs, floats, booleans, and None are considered primitive\n    and will return True when passed into *is_primitive()*\n\n    >>> is_primitive(3)\n    True\n    >>> is_primitive([4,4])\n    False\n    '
    return (type(obj) in PRIMITIVES)
Helper method to see if the object is a basic data type. Unicode strings,
integers, longs, floats, booleans, and None are considered primitive
and will return True when passed into *is_primitive()*

>>> is_primitive(3)
True
>>> is_primitive([4,4])
False
def is_primitive(obj):
    'Helper method to see if the object is a basic data type. Unicode strings,\n    integers, longs, floats, booleans, and None are considered primitive\n    and will return True when passed into *is_primitive()*\n\n    >>> is_primitive(3)\n    True\n    >>> is_primitive([4,4])\n    False\n    '
    return (type(obj) in PRIMITIVES)