Project

General

Profile

« Previous | Next » 

Revision 1445

util.py: Added classes_eq()

View differences:

lib/util.py
50 50
        if cast(type(none_val), val) == none_val: return None
51 51
    return val
52 52

  
53
#### Classes
54

  
55
def classes_eq(val0, val1): return val0() == val1() # compare instances
56

  
53 57
#### Iterables
54 58

  
55 59
def first(iter_): return iter_.next()

Also available in: Unified diff