Revision 931
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/util.py | ||
---|---|---|
1 | 1 |
# Useful functions and classes |
2 | 2 |
|
3 |
#### Function wrappers for statements |
|
4 |
|
|
5 |
def noop(*args, **kw_args): pass |
|
6 |
|
|
7 |
def and_(a, b): return a and b |
|
8 |
|
|
3 | 9 |
#### Object metadata |
4 | 10 |
|
5 | 11 |
def type_name(value): return type(value).__name__ |
Also available in: Unified diff
util.py: Added function wrappers for statements noop() and and_()