Project

General

Profile

1 6752 aaronmk
# Scalars (single, literal values)
2
3
import types
4
5
def is_scalar(value):
6
    return isinstance(value, (types.NoneType, bool, int, float, basestring))