Project

General

Profile

1
# Scalars (single, literal values)
2

    
3
import types
4

    
5
def is_scalar(value):
6
    return isinstance(value, (types.NoneType, bool, int, float, basestring))
(32-32/47)