Project

General

Profile

« Previous | Next » 

Revision 931

util.py: Added function wrappers for statements noop() and and_()

View differences:

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