Revision 1445
Added by Aaron Marcuse-Kubitza over 12 years ago
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
util.py: Added classes_eq()