Project

General

Profile

« Previous | Next » 

Revision 6752

Added scalar.py

View differences:

lib/scalar.py
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))

Also available in: Unified diff