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