# Scalars (single, literal values)
import datetime
import types
def is_scalar(value):
return isinstance(value, (types.NoneType, bool, int, float, basestring,
datetime.datetime))