Revision 6752
Added by Aaron Marcuse-Kubitza almost 12 years ago
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
Added scalar.py